예제 #1
0
    public GameObject SpawnFood()
    {
        GameObject go = Instantiate(spawnableFood, SceneManager.instance.GetFoodSpawnPos(), Quaternion.identity);
        FoodObject fs = go.GetComponent <FoodObject>();

        fs.InitFood();

        return(go);
    }