private void Awake() { origin = this.transform.position; _roundText = this.GetComponent <TextMeshProUGUI>(); _roundScoring = GameObject.FindGameObjectWithTag("roundScorer").GetComponent <RoundScoring>(); _audio = GetComponent <AudioController>(); }
private void Start() { stunValue = 0; _ds = GetComponent <DualShock4Input>(); _myPos = transform.position; _rScore = FindObjectOfType <RoundScoring>(); _bPlanter = GetComponent <BombPlanter>(); _audio = GetComponent <AudioController>(); }
private void Start() { CreateGrid(); CreatePlantArea(); CreateBlocks(); _rTime = FindObjectOfType <RoundTimer>(); _rScore = FindObjectOfType <RoundScoring>(); _rTime.RoundStart += OnRoundChange; }
private void Awake() { _roundScoring = GameObject.FindGameObjectWithTag("roundScorer").GetComponent <RoundScoring>(); _timerDisplay = this.transform.Find("TimerText").GetComponent <TextMeshProUGUI>(); _fillBar = this.transform.Find("TimerFill").GetComponent <Image>(); _roundDisplay = GameObject.FindGameObjectWithTag("RoundText").GetComponent <RoundTextDisplay>(); _reducedTime = timerTime; _grid = FindObjectOfType <GridController>(); }
private void Start() { _rScore = FindObjectOfType <RoundScoring>(); _myAnim = GetComponent <Animator>(); if (_bombType == Bomb.BombType.CROSS && _type == PlayerType.MAN) { _myAnim.runtimeAnimatorController = _crossManAnim; } else if (_bombType == Bomb.BombType.CROSS && _type == PlayerType.NATURE) { _myAnim.runtimeAnimatorController = _crossNatureAnim; } else if (_bombType == Bomb.BombType.ROUND && _type == PlayerType.MAN) { _myAnim.runtimeAnimatorController = _roundManAnim; } else if (_bombType == Bomb.BombType.ROUND && _type == PlayerType.NATURE) { _myAnim.runtimeAnimatorController = _roundNatureAnim; } }
void Awake() { _roundScoring = GameObject.FindGameObjectWithTag("roundScorer").GetComponent <RoundScoring>(); }
private void Awake() { roundScoring = GameObject.FindGameObjectWithTag("roundScorer").GetComponent <RoundScoring>(); _roundWinText = GetComponent <TextMeshProUGUI>(); }