예제 #1
0
파일: Shoot.cs 프로젝트: frankvega2010/Fee
    public void SwitchActivation()
    {
        if (GameManager.Get().turretSpawner.preview)
        {
            GameManager.Get().SwitchTurretActivation();
        }

        isActivated = !isActivated;

        if (isActivated)
        {
            explosionRadius.SetActive(true);
            meteorButton.image.color = enableColor;
            uiAnimation.ChangeGradientElement(0, 0);
        }
        else
        {
            explosionRadius.SetActive(false);
            meteorButton.image.color = disableColor;
            uiAnimation.ChangeGradientElement(0, 2);
        }
    }