Replaced Console.WriteLine to Debug.Log.