Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     waveCounter = currentWave;
     infoList    = (LevelInfoList)gameObject.GetComponent <LevelInfoList> ();
     levelInfo   = infoList.levelsInfo;
     GUIManager.SetSpawnButtonText("Next wave");
 }
Exemplo n.º 2
0
 //初始化关卡限制
 private void InitLevelLimit()
 {
     m_levelInfoList  = Resources.Load <UserData>("UserDatum/UserData").levelInfoList;
     m_challengeState = ChallengeState.prepare;
     m_curInfo        = m_levelInfoList.FindLevelInfo(Director.Instance.CurrentSceneName);
     m_timeLimit      = m_curInfo.PassTimeLimit;
     m_turnLimit      = m_curInfo.PassTurnLimit;
 }
Exemplo n.º 3
0
 void OnEnable()
 {
     l         = (LevelInfoList)target;
     GetTarget = new SerializedObject(l);
     ThisList  = GetTarget.FindProperty("levelsInfo");
 }