Exemplo n.º 1
0
 private void Awake()
 {
     origin        = this.transform.position;
     _roundText    = this.GetComponent <TextMeshProUGUI>();
     _roundScoring = GameObject.FindGameObjectWithTag("roundScorer").GetComponent <RoundScoring>();
     _audio        = GetComponent <AudioController>();
 }
Exemplo n.º 2
0
 private void Start()
 {
     stunValue = 0;
     _ds       = GetComponent <DualShock4Input>();
     _myPos    = transform.position;
     _rScore   = FindObjectOfType <RoundScoring>();
     _bPlanter = GetComponent <BombPlanter>();
     _audio    = GetComponent <AudioController>();
 }
Exemplo n.º 3
0
 private void Start()
 {
     CreateGrid();
     CreatePlantArea();
     CreateBlocks();
     _rTime             = FindObjectOfType <RoundTimer>();
     _rScore            = FindObjectOfType <RoundScoring>();
     _rTime.RoundStart += OnRoundChange;
 }
Exemplo n.º 4
0
 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>();
 }
Exemplo n.º 5
0
    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;
        }
    }
Exemplo n.º 6
0
 void Awake()
 {
     _roundScoring = GameObject.FindGameObjectWithTag("roundScorer").GetComponent <RoundScoring>();
 }
Exemplo n.º 7
0
 private void Awake()
 {
     roundScoring  = GameObject.FindGameObjectWithTag("roundScorer").GetComponent <RoundScoring>();
     _roundWinText = GetComponent <TextMeshProUGUI>();
 }