Exemplo n.º 1
0
        public void AddEnemy()
        {
            MechaConfig mechaConfig = ConfigManager.Instance.GetRandomMechaConfig();
            MechaInfo   mechaInfo   = mechaConfig.GetMechaInfo(MechaCamp.Enemy);

            BattleManager.Instance.AddEnemyMecha(mechaInfo);
            ClientBattleManager.Instance.MechaDict[mechaInfo.GUID].transform.position = new Vector3(Random.Range(0, 20), 0, Random.Range(0, 20));
        }