Esempio n. 1
0
 public void performPostWalk()
 {
     EnviromentMap.setEnviroment(transform.position.x, transform.position.y, transform.position.z, previousEnviroment);
     transform.Translate(newLocation);
     EnviromentMap.setEnviroment(transform.position.x, transform.position.y, transform.position.z, this);
     if (previousEnviroment != null)
     {
         previousEnviroment.walkAwayFrom();
     }
     previousEnviroment = currentEnviroment;
     move = 0;
     if (currentEnviroment != null)
     {
         currentEnviroment.postWalk(this);
     }
 }