Exemple #1
0
 public ZoneModel(MapModel.Party party, AllianceType alliance, WorldPosition wp)
 {
     zonePieceModels = new List <ZzFragModel> ();
     _alliance       = alliance;
     position        = wp;
     _party          = party;
 }
        public void ChangeParty()
        {
            switch (currentParty)
            {
            case MapModel.Party.P1:
                currentParty = MapModel.Party.P2;
                break;

            case MapModel.Party.P2:
                currentParty = MapModel.Party.P3;
                break;

            case MapModel.Party.P3:
                currentParty = MapModel.Party.P4;
                break;

            case MapModel.Party.P4:
                currentParty = MapModel.Party.AIOnly;
                break;

            case MapModel.Party.AIOnly:
                currentParty = MapModel.Party.P1;
                break;
            }
            Debug.Log("party = " + currentParty);
        }
        void Start()
        {
            cam          = GameObject.Find("Main Camera").GetComponent <Camera> ();
            currentParty = MapModel.Party.P1;
            GameObject mapViewObj = Instantiate(mapPrefab, Vector3.zero, Quaternion.identity);

            mapView = mapViewObj.GetComponent <MapView> ();
            mapView.GetComponent <MapView> ()._mapModel = StaticMapCreateData.currentMap;
            currentUnit = BridgeData.unitRepo._unitsById.ElementAt(0).Value;
        }
 public void ChangeParty()
 {
     partyCount++;
     if (currentParty == MapModel.Party.P1)
     {
         currentParty = MapModel.Party.AIOnly;
     }
     else
     {
         currentParty = MapModel.Party.P1;
     }
     Debug.Log("party = " + currentParty);
 }