protected override void Interaction() { if (!_playerBall.Immortality) { OnCaughtPlayerChange.Invoke(gameObject.name, _color); } else { print($"Immortality"); } }
protected override void Interaction() { OnCaughtPlayerChange.Invoke(gameObject.name, _color); Destroy(gameObject); }
protected override void Interaction() { OnCaughtPlayerChange?.Invoke("злой куб"); CaughtPlayer?.Invoke(); }
protected override void Interaction() { OnCaughtPlayerChange?.Invoke("злой куб", Color.Lerp(Color.black, Color.blue, 5f)); CaughtPlayer?.Invoke(); }