Ejemplo n.º 1
0
        public FlyingMovementAgent(float mSpeed, Transform mTransform, Grid grid, EnemyData enemyData)
        {
            m_Speed     = mSpeed;
            m_Transform = mTransform;
            m_Data      = enemyData;

            SetTargetNode(grid.GetTargetNode());
            m_CurrentNode = grid.GetStartNode();
            m_Data.AttachMovementAgent(this);
        }
Ejemplo n.º 2
0
        public GridMovementAgent(float mSpeed, Transform mTransform, Grid grid, EnemyData enemyData)
        {
            m_Speed     = mSpeed;
            m_Transform = mTransform;
            m_Data      = enemyData;

            m_NodeSize = Game.Player.Grid.NodeSize;

            SetTargetNode(grid.GetStartNode());
            m_PrevNode = m_TargetNode;
            m_PrevNode.EnemyDatas.Add(m_Data);
            m_Data.AttachMovementAgent(this);
        }