Esempio n. 1
0
    void InstancePlayerAI(string ip, int playerID, int gun1, int gun2)
    {
        GameObject     prefab = Resources.Load <GameObject>("Prefab/Player/PlayerAI");
        GameObject     ai     = Instantiate <GameObject>(prefab);
        BattleAIClient ib     = ai.GetComponent <BattleAIClient>();

        ib.ip = ip;
        playerDic.Add(ip, ai.GetComponent <PlayerBase>());
    }
Esempio n. 2
0
 public ReceiveServerCommand(BattleAIClient client)
 {
     BattleAIClient = client;
 }