Esempio n. 1
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space))
        {
            print("space key was pressed");
            cc.TurnRed();
        }

        if (Input.GetKeyDown(KeyCode.B))
        {
            print("b has bbbbeeen pressed");
            cc.MakeBig();
        }
    }