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); }
public void DestroyBeehive(GameObject deadBeehive) { Beehives.Remove(deadBeehive); Destroy(deadBeehive); }