Example #1
0
 //TODO SCORE AND COMBO MECHANIC
 // Start is called before the first frame update
 private void Start()
 {
     _myWhite       = new Color(1, 1, 1, 0.5f);
     _redPanel      = GameObject.Find("red_panel");
     _blade         = GameObject.Find("Blade").GetComponent <blade>();
     _redLightning  = GameObject.Find("red_lightning").GetComponent <ParticleSystem>();
     _scoreText     = GameObject.Find("Score").GetComponent <TextMeshProUGUI>();
     _comboText     = GameObject.Find("Combo").GetComponent <TextMeshProUGUI>();
     ComboCount     = 1;
     PidgeonsKilled = 0;
     ComboTimeLimit = 0.5f;
     Score          = 0;
 }
Example #2
0
    private void Awake()
    {
        _blade           = GameObject.Find("Blade").GetComponent <blade>();
        _imageFillEnel   = GameObject.Find("ImageFillEnel");
        _imageFillFrozen = GameObject.Find("ImageFillFrozen");
        _imageDarkEnel   = GameObject.Find("ImageEnelDark");
        _imageDarkFrozen = GameObject.Find("ImageFrozenDark");
        _imageFillDavid  = GameObject.Find("ImageFillDavid");
        _imageDarkDavid  = GameObject.Find("ImageDavidDark");

        _imageDarkEnel.SetActive(false);
        _imageFillEnel.SetActive(false);
        _imageDarkFrozen.SetActive(false);
        _imageFillFrozen.SetActive(false);
        _imageFillDavid.SetActive(false);
        _imageDarkDavid.SetActive(false);
    }
Example #3
0
 private void Start()
 {
     _bladeScript = GameObject.Find("Blade").GetComponent <blade>();
 }