예제 #1
0
 private void Awake()
 {
     m_gameWorldObjectManager        = GetComponentInParent <GameWorldObjectManager>();
     m_interactionComponent          = GetComponent <InteractionObject>();
     m_interactionComponent.Used    += Use;
     m_interactionComponent.Dropped += Dropped;
     m_spriteRenderer = GetComponent <SpriteRenderer>();
 }
예제 #2
0
    void Start()
    {
        m_worldObjectManager = GetComponentInParent <GameWorldObjectManager>();

        m_fullHealthColor    = m_bodySpriteRenderer.color;
        m_fullHealthEmission = m_bodyL2DLSprite.Emission;

        m_enemy.OnHit   += OnHit;
        m_enemy.OnDeath += OnDeath;
    }
예제 #3
0
 private void Start()
 {
     m_gameWorldObjectManager = FindObjectOfType <GameWorldObjectManager>();
 }