예제 #1
0
 public ZoneModel(MapModel.Party party, AllianceType alliance, WorldPosition wp)
 {
     zonePieceModels = new List <ZzFragModel> ();
     _alliance       = alliance;
     position        = wp;
     _party          = party;
 }
예제 #2
0
        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);
        }
예제 #3
0
        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;
        }
예제 #4
0
 public void ChangeParty()
 {
     partyCount++;
     if (currentParty == MapModel.Party.P1)
     {
         currentParty = MapModel.Party.AIOnly;
     }
     else
     {
         currentParty = MapModel.Party.P1;
     }
     Debug.Log("party = " + currentParty);
 }