Example #1
0
        public ArrowContext(ArrowState arrowState)
        {
            this.CurrentState = arrowState;

            this.X = 0;
            this.Y = 0;
        }
Example #2
0
 // Use this for initialization
 void Start()
 {
     //Remember to add in code to check for audiosource
     spotLightTransform = GameObject.Find("Spotlight").transform;
     arrowState=ArrowState.None;
     leftArrow=GameObject.Find("Arrows/leftArrow");
     rightArrow=GameObject.Find("Arrows/rightArrow");
     upArrow=GameObject.Find("Arrows/upArrow");
     downArrow=GameObject.Find("Arrows/downArrow");
 }
Example #3
0
    // Update is called once per frame
    void Update()
    {
        if(Input.GetKey(KeyCode.UpArrow) && state == ArrowState.down){
            menuPlay.transform.localScale = new Vector3(menuScale, menuScale, 1);
            menuControls.transform.localScale = new Vector3(1, 1, 1);
            transform.position = positionUp;
            state = ArrowState.up;
        }

        if(Input.GetKey(KeyCode.DownArrow) && state == ArrowState.up){
            menuControls.transform.localScale = new Vector3(menuScale, menuScale, 1);
            menuPlay.transform.localScale = new Vector3(1, 1, 1);
            transform.position = positionDown;
            state = ArrowState.down;
        }

        if(Input.GetKey(KeyCode.Return)){
            if(state == ArrowState.up)
                Application.LoadLevel("Act1Scene0");
            else
                Application.LoadLevel("Act0Controls");
        }
    }
 private void arrow_MouseDown(object sender, MouseEventArgs e)
 {
     PictureBox p = sender as PictureBox;
     if (p.Name == "arrowup")
     {
         p.Image = ResClass.GetImgRes("scrollbar_arrowup_down");
         currentArrow = ArrowState.Up;
     }
     else
     {
         p.Image = ResClass.GetImgRes("scrollbar_arrowdown_down");
         currentArrow = ArrowState.Down;
     }
     timer.Enabled = true;
 }
 private void arrow_MouseUp(object sender, MouseEventArgs e)
 {
     currentArrow = ArrowState.None;
     arrow_MouseLeave(sender, null);
 }
Example #6
0
 IEnumerator LateHideCore(float time)
 {
     yield return new WaitForSeconds(time);
     this.State = ArrowState.Hide;
 }
Example #7
0
    void Start()
    {
        GameObject.Find("Spotlight").transform.parent=transform;
        Camera.main.transform.parent=transform;
        arrowState1=ArrowState.None;
        arrowState2=ArrowState.None;
        arrowState3=ArrowState.None;

        leftArrow=GameObject.Find("Arrows/leftArrow1");
        rightArrow=GameObject.Find("Arrows/rightArrow1");
        upArrow=GameObject.Find("Arrows/upArrow1");
        downArrow=GameObject.Find("Arrows/downArrow1");

        leftArrow2=GameObject.Find("Arrows/leftArrow2");
        rightArrow2=GameObject.Find("Arrows/rightArrow2");
        upArrow2=GameObject.Find("Arrows/upArrow2");
        downArrow2=GameObject.Find("Arrows/downArrow2");

        leftArrow3=GameObject.Find("Arrows/leftArrow3");
        rightArrow3=GameObject.Find("Arrows/rightArrow3");
        upArrow3=GameObject.Find("Arrows/upArrow3");
        downArrow3=GameObject.Find("Arrows/downArrow3");
    }