// Use this for initialization void Start() { Button clearBtn = clearButton.GetComponent <Button>(); clearButton.onClick.AddListener(Clear); originalPos = player.transform.position; originalRot = player.transform.rotation; commandExecution = GetComponent <UIPlayCommand1>(); }
// Use this for initialization void Start() { //Mairim Button submitBtn = submit.GetComponent <Button>(); submitBtn.onClick.AddListener(AddCommandsToCommandList); //Record original position of the player originalPos = player.transform.localPosition; originalRot = player.transform.localRotation; //Create instance of the two player handler classes commandProcessor = GetComponent <UIButtonClick>(); commandExecution = GetComponent <UIPlayCommand1> (); attempt = 0; }
// Use this for initialization void Start() { //Mairim Button submitBtn = submit.GetComponent <Button>(); submitBtn.onClick.AddListener(AddCommandsToCommandList); //Button continueBtn = cont.GetComponent<Button>(); //continueBtn.onClick.AddListener (ClearAllC); //Record original position of the player originalPos = player.transform.localPosition; originalRot = player.transform.localRotation; //Create instance of the two player handler classes commandProcessor = GetComponent <UIButtonClick> (); commandExecution = GetComponent <UIPlayCommand1> (); bl = GetComponent <BlocksRotator>(); attempt = 0; submitClicked = false; //DeactivateControls (); }