private void ExampleController_BeingAttacked(ExampleController sender)
 {
     StartCoroutine(ChangeColor(new Color(232f / 255f, 68f / 255f, 68f / 255f), ColorChangeSpeed));
     ExampleController.BeingAttacked -= ExampleController_BeingAttacked;
     ExampleController.AttackStopped += ExampleController_AttackStopped;
 }
 private void ExampleController_AttackStopped(ExampleController sender)
 {
     StartCoroutine(ChangeColor(Color.white, ColorChangeSpeed));
     ExampleController.AttackStopped -= ExampleController_AttackStopped;
 }
Exemple #3
0
 private void ExampleController_Spawned(ExampleController sender)
 {
     ExampleTarget = sender.GetComponent <RectTransform>();
 }