Exemple #1
0
 void Start()
 {
     p_i = gameObject.GetComponentInParent <Player_Input>();
     pb  = gameObject.GetComponent <ProblemBattery_Script>();
     pp  = gameObject.GetComponent <ProblemPower_Script>();
     pe  = gameObject.GetComponent <ProblemEngine_Script>();
 }
Exemple #2
0
    void Start()
    {
        pi = gameObject.GetComponent <Player_Input>();

        bat = gameObject.GetComponentInChildren <ProblemBattery_Script>();
        pow = gameObject.GetComponentInChildren <ProblemPower_Script>();
        eng = gameObject.GetComponentInChildren <ProblemEngine_Script>();
    }
Exemple #3
0
 void Start()
 {
     switches = gameObject.GetComponentsInChildren <Switcher_Script>();
     pp       = GameObject.FindObjectOfType <ProblemPower_Script>();
 }