예제 #1
0
    //mock
    void GenerateRandomMissions()
    {
        for (int i = 0; i < Random.Range(2,20); i++) {
            int waves = Random.Range(1,5);

            MissionVO mis = new MissionVO(i,"Mission"+i,MissionType.DESTROY,waves);

            missions.Add(mis);
        }

        OnMissionsGenerated();
    }
예제 #2
0
        public static MissionVO FromJson(JSONClass jClass)
        {
            MissionVO mission = new MissionVO(jClass["id"].AsInt, jClass["name"], (MissionType)jClass["type"].AsInt, jClass["waves"].AsInt);

            return mission;
        }