private void onTrigger(Collider2D other) { if (other.gameObject.tag == "Player") { HeroController e = other.GetComponent <HeroController> (); if (handFallTimer < handFallDommageMaxTime && handFallTimer > handFallDommageMinTime) { e.Dommage(dommage); } } }
private void onTrigger(Collider2D other) { if (other.gameObject.tag == "Player") { HeroController e = other.GetComponent <HeroController> (); if (laserTimer < activeLaserTime) { e.Dommage(dommage); } } }