private void CrossUsed(Messages.Cross message) { if (!myStats.isAlive) { myStats.healthPoints = myStats.maxHealthPoints; gameObject.SetActive(true); } if (agred) { transform.position = startPosition; agred = false; } }
private void CrossUsed(Messages.Cross message) { if (!myStats.isAlive) { myStats.healthPoints = myStats.maxHealthPoints; gameObject.SetActive(true); } if (state != State.Idle) { explosionTimer = explosionDelay; transform.position = startPosition; state = State.Idle; } }
private void CrossUsed(Messages.Cross message) { dataManager.SaveToJSON(inventory); }
private void CrossUsed(Messages.Cross message) { healthPoints = maxHealthPoints; lastCrossPosition = transform.position; }