Exemplo n.º 1
0
        public void GetEnemyMasterAtRandom(Action <EnemyMaster> resfunc)
        {
            if (_popEnemies == null)
            {
                return;
            }

            var         random      = UnityEngine.Random.Range(0, _popEnemies.Count);
            EnemyMaster enemyMaster = _popEnemies[random];

            resfunc.SafeCall(enemyMaster);
        }
Exemplo n.º 2
0
 public EnemyModel(EnemyMaster master)
 {
     Name      = master.Name;
     Health    = master.Health;
     MoveSpeed = master.MoveSpeed;
 }