예제 #1
0
 public void AssembleCollisions(UnitStateType state, UnitAsset asset, UnitBuilder builder, Rigidbody rb, BoxCollider collider)
 {
     m_asset    = asset;
     m_state    = state;
     m_builder  = builder;
     m_rb       = rb;
     m_collider = collider;
 }
예제 #2
0
        public void AssembleHealth(UnitStateType state, UnitAsset asset, UnitBuilder builder, UnitAnimation animation)
        {
            m_asset     = asset;
            m_state     = state;
            m_builder   = builder;
            m_animation = animation;

            m_isPlayer = m_asset.IsPlayer();
            m_pool     = m_asset.ObjectPoolAsset();
            m_faction  = m_asset.Faction();

            m_playerHealthChangeEvent = m_asset.UnitHealthChangeEvent();
            m_playerDeathEvent        = m_asset.UnitDeathEvent();
        }