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