// Use this for initialization void Start() { tb = GetComponent <TimeBehaviour>(); player = GameObject.FindGameObjectWithTag("Player"); if (player) { spc = player.GetComponent <SwitchablePlayerController>(); } }
void Start() { sp = GameObject.FindGameObjectWithTag("Player").GetComponent <SwitchablePlayerController>(); cb = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <CameraBehaviour>(); ams = GameObject.FindGameObjectWithTag("Managers").GetComponentInChildren <AudioManagerScript>(); isMaxGTLReached = false; gtlCounter = 0.0f; timewarpSound = GetComponents <AudioSource>()[3]; gtlUp = GetComponents <AudioSource>()[5]; paused = false; }
void Start() { player = GameObject.FindGameObjectWithTag("Player"); tm = player.GetComponent <TimeManager>(); spc = player.GetComponent <SwitchablePlayerController>(); timeBombPanel.SetActive(false); timeBomb.SetActive(true); bombs = 1; bomb1Ok = true; TimeBomb1.fillAmount = 1.0f; dot.SetActive(false); symbol.SetActive(true); spc.emptyStockBombs = false; isPlayerRestored = false; stopCharge = false; resetBomb = false; }
// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag("Player"); UI = GameObject.FindGameObjectWithTag("UI_InGame"); //TimeBomb = GameObject.FindGameObjectWithTag("TimeBomb1"); spc = player.GetComponent <SwitchablePlayerController>(); gtm = UI.GetComponent <GTLManager>(); //destroyArray = new List<GameObject>(); alertList = new List <Transform>(); noLifesRemaining = false; PlayerColliders = playercontrol.GetComponents <BoxCollider>(); foreach (Transform child in alert.transform) { alertList.Add(child); } //Invulnerability First Time //TimeBombManager.stopChargeBomb = true; InvulnerableTimerSequence = InvulnerableSequence(); StartCoroutine(InvulnerableTimerSequence); }
// Update is called once per frame void Update() { if (!player) { player = GameObject.FindGameObjectWithTag("Player"); if (player) { spc = player.GetComponent <SwitchablePlayerController>(); } } if (start) { transform.Translate(new Vector3(0.0f, 0.0f, -speed * Time.deltaTime * tb.scaleOfTime)); } if (transform.position.z < -700.0f && !isTutorialTime && player.activeInHierarchy) { isTutorialTime = true; spc.onTutorial = true; spc.StopTimeTutorial3(); } }
// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag("Player"); spc = player.GetComponent <SwitchablePlayerController>(); }