Beispiel #1
0
 private void Awake()
 {
     _rigidbody         = GetComponent <Rigidbody2D>();
     _animator          = GetComponent <Animator>();
     _coloredGameObject = GetComponent <ColoredGameObject>();
 }
Beispiel #2
0
 /// <summary>
 /// Register a colored game object. The object will be notified when the world color changes
 /// </summary>
 /// <param name="obj"></param>
 public void RegisterColoredGameObject(ColoredGameObject obj)
 {
     OnWorldColorChangeEvent += obj.OnWorldColorChange;
 }