private void Awake() { m_gameWorldObjectManager = GetComponentInParent <GameWorldObjectManager>(); m_interactionComponent = GetComponent <InteractionObject>(); m_interactionComponent.Used += Use; m_interactionComponent.Dropped += Dropped; m_spriteRenderer = GetComponent <SpriteRenderer>(); }
void Start() { m_worldObjectManager = GetComponentInParent <GameWorldObjectManager>(); m_fullHealthColor = m_bodySpriteRenderer.color; m_fullHealthEmission = m_bodyL2DLSprite.Emission; m_enemy.OnHit += OnHit; m_enemy.OnDeath += OnDeath; }
private void Start() { m_gameWorldObjectManager = FindObjectOfType <GameWorldObjectManager>(); }