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; } }
private bool checkWhoCanCatchItem(Global.typeOfPlayer player) { if (allPlayersCanCatch) { return(true); } else { return(typeOfPlayerThatCanCatchItem.Equals(player)); } }
void OnTriggerExit2D(Collider2D outro) { Global.typeOfPlayer tipo = Global.getTypeOfPlayerByTag(outro.tag); if (!tipo.Equals(Global.typeOfPlayer.Player_None)) { StartCoroutine("PararEm2Segudos"); } }
void OnTriggerStay2D(Collider2D outro) { Global.typeOfPlayer tipo = Global.getTypeOfPlayerByTag(outro.tag); if (!tipo.Equals(Global.typeOfPlayer.Player_None)) { startMovimento(); } }
private bool checkWhoCanIterateWithItem(Global.typeOfPlayer player) { if (allPlayersCanCatch) { return(true); } else { return(typeOfPlayerCanActived.Equals(player)); } }
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(); } } }