예제 #1
0
 private void initSquare()
 {
     isPainted = false;
     isSelected = false;
     isSelectedDest = false;
     isAccessible = true;
     anim = this.gameObject.transform.GetChild (0).animation;
     colors = new SquareColors();
     path = new Path();
     noPathSquares = new List<GameObject> ();
 }
예제 #2
0
 void initVariables()
 {
     rows = 7;
     columns = 7;
     offset = 3.8f;
     score = 0;
     combo = 0;
     paintedSquares = 0;
     randomSquaresPainted = 4;
     listLeft = new List<string>();
     listRight = new List<string>();
     listDown = new List<string>();
     listUp = new List<string>();
     listLine = new List<string>();
     selectedSquare = null;
     selectedSquareDest = null;
     selectedSquareColor = Color.clear;
     selectedSquareDestColor = Color.clear;
     colors = new SquareColors ();
     gadgetsScript = GameObject.FindGameObjectWithTag ("Gadgets").GetComponent<Gadgets> ();
 }