Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     isMoving           = false;
     canMove            = true;
     manual             = false;
     directions         = new char[] { 'n', 's', 'w', 'e' };
     go                 = GetComponent <GridObserver>();
     spaceStack         = new Stack <char>();
     body               = transform.GetChild(0);
     transform.position = curSpace.transform.position + new Vector3(0.0f, 1.1f, 0.0f);
     curGS              = curSpace.GetComponent <GridSpace>();
 }
Example #2
0
 private void Start()
 {
     cc  = GetComponent <CursorChange>();
     obs = GameObject.Find("Player").GetComponent <GridObserver>();
     btn = GetComponent <Button>();
 }
Example #3
0
 // Use this for initialization
 void Start()
 {
     originalPosition = transform.localPosition;
     observer         = GameObject.Find("PlayGridHorizontal").GetComponent <GridObserver>();
 }