예제 #1
0
        public GameObject CreateBeehive(Vector2 position)
        {
            GameObject hive = (GameObject)Instantiate(beehive, position, Quaternion.identity);

            Beehives.Add(hive);
            hive.GetComponent <Hive.Hive>().Radius = 1;
            hive.SetActive(true);
            return(hive);
        }
예제 #2
0
 public void DestroyBeehive(GameObject deadBeehive)
 {
     Beehives.Remove(deadBeehive);
     Destroy(deadBeehive);
 }