public GameObject SpawnFood() { GameObject go = Instantiate(spawnableFood, SceneManager.instance.GetFoodSpawnPos(), Quaternion.identity); FoodObject fs = go.GetComponent <FoodObject>(); fs.InitFood(); return(go); }