Example #1
0
 // Use this for initialization
 void Start()
 {
     realz       = transform.position.z;
     initialz    = realz;
     initialx    = transform.position.x;
     initialy    = transform.position.y;
     realz       = transform.position.z;
     Random.seed = 32;
     System.Random rn = new System.Random();
     movespeed = 6;
     k         = rn.Next(2, 20);
     cube4     = GameObject.Find("Cube4").GetComponent <Cube4>();
     flag      = false;
 }
Example #2
0
            public Cube4 this[Point4 p]
            {
                get
                {
                    if (!this.cubes.ContainsKey(p))
                    {
                        Cube4 cube = new Cube4 {
                            Location = p, Current = State.Inactive, Next = State.Inactive
                        };
                        cubes[p] = cube;
                    }

                    return(cubes[p]);
                }
            }
Example #3
0
 public (Cube4 cubeA, Cube4 cubeB) Split(Cube4 cube)
 {
     throw new NotImplementedException();
 }