private void Awake() { _rigidbody = GetComponent <Rigidbody2D>(); _animator = GetComponent <Animator>(); _coloredGameObject = GetComponent <ColoredGameObject>(); }
/// <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; }