// 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 (); }
//public GameObject wall; //public GameObject cube; void Start() { bl = GameObject.FindObjectOfType <BlocksRotator>(); }