void OnTriggerEnter2D(Collider2D collider) { if (mode != Mode.Die) { StartCoroutine(kill()); HeroControll rabit = collider.GetComponent <HeroControll>(); if (rabit != null) { rabit.triggerDeath(); } } }
protected override void OnRabitHit(HeroControll rabit) { if (rabit.red) { return; } if (rabit.super) { rabit.makeSmall(); } else { rabit.triggerDeath(); } this.CollectedHide(); }
protected override void OnRabitHit(HeroControll rabit) { if (!rabit.red) { if (rabit.super) { rabit.makeRed(); } else { rabit.triggerDeath(); } } this.CollectedHide(); }