noActive() 공개 메소드

public noActive ( ) : void
리턴 void
예제 #1
0
    void Awake()
    {
        Time.timeScale = 1;
        Rect initPixelInset = new Rect(0, 0, 1, 1);

        initPixelInset.height = Screen.height * 0.10f;
        initPixelInset.width  = initPixelInset.height * 3f;
        initPixelInset.x      = Screen.width * 0.05f;
        initPixelInset.y      = -Screen.height * 0.475f;
        guiTexture.pixelInset = initPixelInset;
        color            = guiTexture.color;
        color.a          = 0;
        guiTexture.color = color;
        Gameflow.SetDifficulty(Gameflow.MEDIUM);
        // animation
        timeLeftAnimationChange = timeBetweenAnimationUnS;
        this.active             = true;
        animationIndex          = 0;
        timeLeftAnimationChange = timeBetweenAnimationS;
        currentAnimation        = texturesS;
        easyButton.noActive();
        hardButton.noActive();
        animationForward = true;
        animationIndex   = 0;
    }
예제 #2
0
    public void OnMouseUpAsButton()
    {
        audio.PlayOneShot(level_easy);
        this.active             = true;
        animationIndex          = 0;
        timeLeftAnimationChange = timeBetweenAnimationS;
        currentAnimation        = texturesS;

        normalButton.noActive();
        hardButton.noActive();
        // normal button NO active
        // hard button NO active


        Gameflow.SetDifficulty(Gameflow.EASY);
    }