Пример #1
0
    private void GetInitialReferences()
    {
        _rb             = GetComponent <Rigidbody2D>();
        _cam            = Camera.main;
        _bladeCollider  = GetComponent <CircleCollider2D>();
        SpecialQuantity = 0;
        _lightning      = GameObject.Find("lightning").GetComponent <ParticleSystem>();
        _snow           = GameObject.Find("snow").GetComponent <ParticleSystem>();
        _shacos         = GameObject.Find("shacos").GetComponent <ParticleSystem>();
        _watcher        = GameObject.Find("Watcher").GetComponent <Watcher>();
        _spawnnerScript = GameObject.Find("Spawnner Woodpeaker").GetComponent <spawnner>();
        _specialEffects = _watcher.GetComponent <SpecialEffectsController>();

        _canCut = true;
        //_audioSource = GetComponent<AudioSource>();
    }