Esempio n. 1
0
 private void itemActived(bool actived, Global.typeOfPlayer player,
                          Global.typeOfPlayer playerThatCanActived,
                          Global.InteractiveItem item, Vector3 positionOfItem)
 {
     if (tipo.Equals(playerThatCanActived) && actived && Global.InteractiveItem.CheckPoint.Equals(item))
     {
         respawnPosition = positionOfItem;
     }
 }
Esempio n. 2
0
 private bool checkWhoCanCatchItem(Global.typeOfPlayer player)
 {
     if (allPlayersCanCatch)
     {
         return(true);
     }
     else
     {
         return(typeOfPlayerThatCanCatchItem.Equals(player));
     }
 }
Esempio n. 3
0
 void OnTriggerExit2D(Collider2D outro)
 {
     Global.typeOfPlayer tipo = Global.getTypeOfPlayerByTag(outro.tag);
     if (!tipo.Equals(Global.typeOfPlayer.Player_None))
     {
         StartCoroutine("PararEm2Segudos");
     }
 }
Esempio n. 4
0
 void OnTriggerStay2D(Collider2D outro)
 {
     Global.typeOfPlayer tipo = Global.getTypeOfPlayerByTag(outro.tag);
     if (!tipo.Equals(Global.typeOfPlayer.Player_None))
     {
         startMovimento();
     }
 }
Esempio n. 5
0
 private bool checkWhoCanIterateWithItem(Global.typeOfPlayer player)
 {
     if (allPlayersCanCatch)
     {
         return(true);
     }
     else
     {
         return(typeOfPlayerCanActived.Equals(player));
     }
 }
Esempio n. 6
0
 private void soundItemActived(bool actived, Global.typeOfPlayer player, Global.typeOfPlayer playerThatCanActived, Global.InteractiveItem item, Vector3 position)
 {
     if (player.Equals(playerThatCanActived))
     {
         if (actived)
         {
             interactiveItemOn.Play();
         }
         else
         {
             interactiveItemOff.Play();
         }
     }
 }