Exemple #1
0
 private void Start()
 {
     globalalrtscript   = (GlobalAlertScript)Object.FindObjectOfType(typeof(GlobalAlertScript));
     globalpatrolscript = (GlobalPatrolSystem)Object.FindObjectOfType(typeof(GlobalPatrolSystem));
     playershots        = (MCMovement)Object.FindObjectOfType(typeof(MCMovement));
     thisaudiosource    = transform.GetComponent <AudioSource>();
     StartCoroutine(GameTimer());
 }
Exemple #2
0
 void Start()
 {
     playerscript     = GameObject.FindGameObjectWithTag("Player").GetComponent <MCMovement>();
     textbox          = (IntroText)Object.FindObjectOfType(typeof(IntroText));
     controltower     = (ControlTowerScript)Object.FindObjectOfType(typeof(ControlTowerScript));
     hangerdoorscript = (HangarDoor)Object.FindObjectOfType(typeof(HangarDoor));
     inventparent     = (InventParent)Object.FindObjectOfType(typeof(InventParent));
     finishlevel      = (FinishLevel)Object.FindObjectOfType(typeof(FinishLevel));
 }
Exemple #3
0
 void Start()
 {
     playermovement = (MCMovement)Object.FindObjectOfType(typeof(MCMovement));
 }
Exemple #4
0
 private void Start()
 {
     playerscript = FindObjectOfType <MCMovement>();
 }
Exemple #5
0
 void Awake()
 {
     playerscript = GameObject.FindGameObjectWithTag("Player").GetComponent <MCMovement>();
     invent       = (InventParent)Object.FindObjectOfType(typeof(InventParent));
     textbox      = (IntroText)Object.FindObjectOfType(typeof(IntroText));
 }
Exemple #6
0
 public void Start()
 {
     inventparent = (InventParent)Object.FindObjectOfType(typeof(InventParent));
     playerscript = GameObject.FindGameObjectWithTag("Player").GetComponent <MCMovement>();
 }
Exemple #7
0
 private void Start()
 {
     audioSource = GetComponent <AudioSource>();
     player      = (MCMovement)FindObjectOfType(typeof(MCMovement));
 }
Exemple #8
0
 private void Start()
 {
     playerscript = GameObject.FindGameObjectWithTag("Player").GetComponent <MCMovement>();
     alertscript  = (GlobalAlertScript)Object.FindObjectOfType(typeof(GlobalAlertScript));
 }
Exemple #9
0
 private void Start()
 {
     playerscript  = GameObject.FindGameObjectWithTag("Player").GetComponent <MCMovement>();
     thislightarea = this.gameObject.GetComponentInChildren <LightSwitchArea>();
 }