예제 #1
0
 // Start is called before the first frame update
 void Start()
 {
     if (FindObjectOfType <SceneTransitionLoader>())
     {
         scene_transition_ = FindObjectOfType <SceneTransitionLoader>();
     }
 }
예제 #2
0
 // Start is called before the first frame update
 void Start()
 {
     _AM           = FindObjectOfType <AudioManager>();
     STM_          = FindObjectOfType <SceneTransitionLoader>();
     isclicked     = FindObjectOfType <IsButtonClicked>();
     internaltimer = pauseSecondsBeforeLoad;
 }
예제 #3
0
 // Start is called before the first frame update
 void Start()
 {
     stl_ = FindObjectOfType <SceneTransitionLoader>();
     //text_ = GetComponent<TextMeshProUGUI>();
     text_.enabled = false;
     to_menu_button_.SetActive(false);
 }
예제 #4
0
 // Start is called before the first frame update
 void Start()
 {
     // Initialise GameObjects and disable portal
     STM_            = FindObjectOfType <SceneTransitionLoader>();
     bomb_objective_ = GameObject.Find("Bomb");
     portal_         = GameObject.Find("Portal");
     player_         = GameObject.Find("Player");
     portal_.SetActive(false);
 }
예제 #5
0
 // Start is called before the first frame update
 void Start()
 {
     // Initialise GameObjects and disable portal
     STM_       = FindObjectOfType <SceneTransitionLoader>();
     charger_1_ = GameObject.Find("Charger");
     spawner_1_ = GameObject.Find("Spawner");
     spawner_2_ = GameObject.Find("Spawner 2");
     portal_    = GameObject.Find("Portal");
     player_    = GameObject.Find("Player");
     portal_.SetActive(false);
 }
예제 #6
0
    // Start is called before the first frame update
    void Start()
    {
        s_l = FindObjectOfType <SceneTransitionLoader>();

        if (load_scene)
        {
            if (start_scene_name != null)
            {
                s_l.load_scene_Asynch(start_scene_name);
            }
            else
            {
                Debug.Log("Bruh enter the menu scene name properly");
            }
        }
    }
예제 #7
0
    // Start is called before the first frame update
    void Start()
    {
        STM_ = FindObjectOfType <SceneTransitionLoader>();

        training_grunt_ = GameObject.Find("TrainingGrunt");

        training_grunt_2_ = GameObject.Find("TrainingGrunt 2");
        training_grunt_2_health_component_ = training_grunt_2_.GetComponent <HealthComponent>();
        training_grunt_2_max_hp_           = training_grunt_2_health_component_.getMaxHp();
        training_grunt_2_.SetActive(false);

        training_grunt_3_ = GameObject.Find("TrainingGrunt 3");
        training_grunt_3_health_component_ = training_grunt_3_.GetComponent <HealthComponent>();
        training_grunt_3_max_hp_           = training_grunt_3_health_component_.getMaxHp();
        training_grunt_3_.SetActive(false);

        player_ = GameObject.Find("Player");

        portal_ = GameObject.Find("Portal");
        portal_.SetActive(false);
    }
예제 #8
0
 // Start is called before the first frame update
 void Start()
 {
     managerobject = FindObjectOfType <SceneTransitionLoader>();
 }