Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        backAnim   = pauseMenuBackground.GetComponent <Animator>();
        buttonAnim = buttons.GetComponent <Animator>();

        playerScript = player.GetComponent <moveOnGrid>();
    }
Exemplo n.º 2
0
    private float loadTime;  //the ammount of time to wait before enabling the buttons

    // Use this for initialization
    void Start()
    {
        currentSelection = 1;
        numButtons       = 6;

        image1 = button1.GetComponent <Image>();
        image2 = button2.GetComponent <Image>();
        image3 = button3.GetComponent <Image>();
        image4 = button4.GetComponent <Image>();
        image5 = button5.GetComponent <Image>();
        image6 = button6.GetComponent <Image>();

        playerScript = player.GetComponent <moveOnGrid>();
    }