private void OnCollisionEnter(Collision collision) { if (collision.gameObject == Jugador) { me.ModifyHP(-1000); playerin.ModifyHP(-20); } }
public override bool Execute() { if (collide) { Character P_character = player.GetComponent <Character>(); P_character.ModifyHP(-Damage); M_character.ModifyHP(-M_character.HP); collide = false; return(true); } else { return(false); } }