Inheritance: MonoBehaviour
		void Awake ()
		{
				Time.timeScale = 1;
				Rect initPixelInset = new Rect (0, 0, 1, 1);
				initPixelInset.width = Screen.width * 0.125f;
				initPixelInset.height = initPixelInset.width / 3f;
				initPixelInset.x = -Screen.width * 0.2375f;
				initPixelInset.y = -Screen.height * 0.250f;
				guiTexture.pixelInset = initPixelInset;
				color = guiTexture.color;
				color.a = 0;
				guiTexture.color = color;
		
				// animation
				timeLeftAnimationChange = timeBetweenAnimationUnS;
				selected = false;
				animationForward = true;
				animationIndex = 0;
				currentAnimation = texturesUnS;

				BAudio = GameObject.FindObjectOfType(typeof(AudioButtons)) as AudioButtons;
		}
Exemple #2
0
    void Awake()
    {
        Time.timeScale = 1;
        Rect initPixelInset = new Rect(0, 0, 1, 1);

        initPixelInset.width  = Screen.width * 0.125f;
        initPixelInset.height = initPixelInset.width / 3f;
        initPixelInset.x      = -Screen.width * 0.2375f;
        initPixelInset.y      = -Screen.height * 0.250f;
        guiTexture.pixelInset = initPixelInset;
        color            = guiTexture.color;
        color.a          = 0;
        guiTexture.color = color;

        // animation
        timeLeftAnimationChange = timeBetweenAnimationUnS;
        selected         = false;
        animationForward = true;
        animationIndex   = 0;
        currentAnimation = texturesUnS;

        BAudio = GameObject.FindObjectOfType(typeof(AudioButtons)) as AudioButtons;
    }