Esempio n. 1
0
    private void recycleLife(GameObject NPCreature)
    {
        // input NPCreature is destined to die. To save on computing time (destroying the gameObject for creating it later again), put it on ice outside the screen
        dead      = true;
        age       = 1;
        children  = 0;
        satiation = satiationMax;

        NPCreature.transform.position = PlayGrid.getOutsideOfScreenCoordinates();
        NPCreaturesInTheAfterlife.Add(NPCreature);
    }