Exemplo n.º 1
0
        public static CharHandler CreateMonster(BattleEnum.Enum_CharSide side, int charId, int charIndex, Vector3 pos, Quaternion rot, int index)
        {
            CharHandler h = BattleScenePool.GetInst().PopMonsterHandler(charId);

            SetMonsterData(h);
            SetObstacleAvoidanceMonster(h);
            SetRadius(h);
            h.ToBorn(0.3f * (index + 1));
            ResetPosition(h, pos, rot);
            BattleManager.GetInst().m_CharInScene.AddChar(h);
            return(h);
        }