Ejemplo n.º 1
0
    void Start()
    {
        GameObject player = GameObject.Find("Player");

        if (player != null)
        {
            playerMov  = player.GetComponent <PlayerMovement>();
            playerInfo = player.GetComponent <PlayerInfo>();
        }

        iceInfo = this.GetComponent <IceInfo>();
    }
Ejemplo n.º 2
0
 public static void addIce(IceInfo ice)
 {
     // Se ele nunca foi até esse ice, adiciono à lista
     if (!icesThatPlayerWent.Contains(ice))
     {
         icesThatPlayerWent.Add(ice);
     }
     // Se não, significa que ele ja esteve nesse ice, então soma na dificuldade
     else
     {
         backToSameIce++;
     }
 }