Пример #1
0
 private void OnDisable()
 {
     _Picked = false;
     _Anim.SetBool("BurningToptoBottom", false);
     _Flame.transform.position = _Origin;
     _RespawnObjects.ReEnableGameObject(this.transform.parent.gameObject);
     transform.position = _RopeOrigin;
 }
Пример #2
0
 private void OnDisable()
 {
     if (_RespawnObjects == null)
     {
         return;
     }
     _RespawnObjects.ReEnableGameObject(this.gameObject);
 }
Пример #3
0
    private void OnDisable()
    {
        var clone = PoolManager.GetObjectFromPool(_Particle.gameObject);

        clone.transform.position = transform.position;
        clone.gameObject.SetActive(true);
        DontDestroyOnLoad(clone);
        uiText.gameObject.SetActive(false);
        _SoundPlaying = false;
        _Picked       = false;
        _RespawnObjects.ReEnableGameObject(this.gameObject);
        _Wick.gameObject.SetActive(false);
        _Timer = 0f;
        if (_SpiceGirl != null)
        {
            _SpiceGirl.transform.position = this.gameObject.transform.position;
            _SpiceGirl.GetComponent <PlayerController>()._Player2CurrentState = PlayerController.Player2State.Fire;
            _SpiceGirl.GetComponent <PlayerController>().enabled = false;
        }
        if (_Cam != null)
        {
            _Cam.DoShake(_Duration, _Magnitude);
        }
    }