Exemple #1
0
        private void CrossUsed(Messages.Cross message)
        {
            if (!myStats.isAlive)
            {
                myStats.healthPoints = myStats.maxHealthPoints;
                gameObject.SetActive(true);
            }

            if (agred)
            {
                transform.position = startPosition;
                agred = false;
            }
        }
Exemple #2
0
        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;
            }
        }
Exemple #3
0
 private void CrossUsed(Messages.Cross message)
 {
     dataManager.SaveToJSON(inventory);
 }
Exemple #4
0
 private void CrossUsed(Messages.Cross message)
 {
     healthPoints      = maxHealthPoints;
     lastCrossPosition = transform.position;
 }