Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     scene_cnt = Quest_Easy.Set_Scene_Num();
     if (scene_cnt == 1)
     {
         interval = 2;
     }
     if (scene_cnt == 2)
     {
         interval = 2;
     }
     if (scene_cnt == 3)
     {
         interval = 2;
     }
     GameStart    = GameObject.Find("GameStart");
     script       = GameStart.GetComponent <GameStartText_No_Endless>();
     warning_gold = false;
     cnt          = 0;
     InvokeRepeating("SpawnObj", 0.1f, interval);
     var2 = Random.Range(0, 3);
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     scene_cnt = Quest_Easy.Set_Scene_Num();
     if (scene_cnt == 1)
     {
         interval       = 2.5f;
         skeleton_count = 5;
     }
     if (scene_cnt == 2)
     {
         interval       = 1;
         skeleton_count = 12;
     }
     if (scene_cnt == 3)
     {
         interval       = 1;
         skeleton_count = 20;
     }
     GameStart  = GameObject.Find("GameStart");
     script     = GameStart.GetComponent <GameStartText_No_Endless>();
     warning_f2 = false;
     cnt        = 0;
     InvokeRepeating("SpawnObj", 0.1f, interval);
 }