void onPlayerEnter(GameObject gb) { PlayerController pcScript = gb.GetComponent <PlayerController> (); pcScript.Hurt(); OnWhipHitDestroy owhScript = GetComponent <OnWhipHitDestroy>(); owhScript.onWhipEnter(); }
void onPlayerEnter(GameObject gb) { Debug.Log("Player hitted"); PlayerController pcScript = gb.GetComponent <PlayerController> (); pcScript.HandleHurt(); OnWhipHitDestroy owhScript = GetComponent <OnWhipHitDestroy>(); owhScript.onWhipEnter(); }