Exemplo n.º 1
0
 public void Ignite()
 {
     if (myState != ObjectState.Chared && myState != ObjectState.OnFire)
     {
         myState = ObjectState.OnFire;
         OnIgnite?.Invoke(this, EventArgs.Empty);
     }
 }
Exemplo n.º 2
0
 /**
  * (re)spawn fire
  *
  * @param fireSpot FireSpot to set active
  */
 private void SetFireActive(FireSpot fireSpot)
 {
     fireSpot.gameObject.SetActive(true);
     OnIgnite.Invoke();
 }