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()); }
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)); }
void Start() { playermovement = (MCMovement)Object.FindObjectOfType(typeof(MCMovement)); }
private void Start() { playerscript = FindObjectOfType <MCMovement>(); }
void Awake() { playerscript = GameObject.FindGameObjectWithTag("Player").GetComponent <MCMovement>(); invent = (InventParent)Object.FindObjectOfType(typeof(InventParent)); textbox = (IntroText)Object.FindObjectOfType(typeof(IntroText)); }
public void Start() { inventparent = (InventParent)Object.FindObjectOfType(typeof(InventParent)); playerscript = GameObject.FindGameObjectWithTag("Player").GetComponent <MCMovement>(); }
private void Start() { audioSource = GetComponent <AudioSource>(); player = (MCMovement)FindObjectOfType(typeof(MCMovement)); }
private void Start() { playerscript = GameObject.FindGameObjectWithTag("Player").GetComponent <MCMovement>(); alertscript = (GlobalAlertScript)Object.FindObjectOfType(typeof(GlobalAlertScript)); }
private void Start() { playerscript = GameObject.FindGameObjectWithTag("Player").GetComponent <MCMovement>(); thislightarea = this.gameObject.GetComponentInChildren <LightSwitchArea>(); }