예제 #1
0
 protected override void Interaction()
 {
     if (!_playerBall.Immortality)
     {
         OnCaughtPlayerChange.Invoke(gameObject.name, _color);
     }
     else
     {
         print($"Immortality");
     }
 }
예제 #2
0
        protected override void Interaction()
        {
            OnCaughtPlayerChange.Invoke(gameObject.name, _color);

            Destroy(gameObject);
        }
예제 #3
0
 protected override void Interaction()
 {
     OnCaughtPlayerChange?.Invoke("злой куб");
     CaughtPlayer?.Invoke();
 }
예제 #4
0
 protected override void Interaction()
 {
     OnCaughtPlayerChange?.Invoke("злой куб", Color.Lerp(Color.black, Color.blue, 5f));
     CaughtPlayer?.Invoke();
 }