예제 #1
0
        public static EntityDataEnemy Create(EnemyData enemyData, LevelPath levelPath, object userData = null)
        {
            EntityDataEnemy entityData = ReferencePool.Acquire <EntityDataEnemy>();

            entityData.EnemyData = enemyData;
            entityData.LevelPath = levelPath;
            return(entityData);
        }
예제 #2
0
        public static EntityDataEnemy Create(EnemyData enemyData, LevelPath levelPath, Vector3 position, Quaternion rotation, object userData = null)
        {
            EntityDataEnemy entityData = ReferencePool.Acquire <EntityDataEnemy>();

            entityData.EnemyData = enemyData;
            entityData.LevelPath = levelPath;
            entityData.Position  = position;
            entityData.Rotation  = rotation;
            return(entityData);
        }
        public Transform GetStartPathNode()
        {
            LevelPath levelPath = GetLevelPath();

            if (levelPath == null || levelPath.PathNodes.Length <= 0)
            {
                return(null);
            }

            return(levelPath.PathNodes[0]);
        }