Esempio n. 1
0
 private void Spread(GameObject stemObject)
 {
     stem = stemObject.GetComponent <Stem>();
     if (!stem.isOnFire)
     {
         GameManager.ModifyFireCount(1);
         GameObject fire = Instantiate(Prefabs.fireObject, stem.transform.position, Quaternion.identity);
         fire.GetComponent <Fire>().stem = stem;
         stem.LightOnFire(fire);
     }
 }