Example #1
0
    // TODO change to Buttons
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.J))
        {
            sound.playShapeShift();
            shape = 0;
            changeShape(shape);
        }

        if (Input.GetKeyDown(KeyCode.K))
        {
            sound.playShapeShift();
            shape = 1;
            changeShape(shape);
        }

        if (Input.GetKeyDown(KeyCode.L))
        {
            sound.playShapeShift();
            shape = 2;
            changeShape(shape);
        }
    }