Example #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;
     }
 }
Example #2
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();
         }
     }
 }