Esempio n. 1
0
        private void GenerateRuleset2()
        {
            Shape[] rulesetShapes = new Shape[1];
                        rulesetShapes [0] = new Shape (UnityEngine.GameObject.Find ("zShapeRight"), RotationStyles.flip90, 0);

                        ShapeRuleset ruleset = new ShapeRuleset ();
                        ruleset.SetRuleset (2, 7, 4, rulesetShapes);
                        mRulesets.Add (ruleset);
        }
Esempio n. 2
0
        private void GenerateRuleset1()
        {
            Shape[] rulesetShapes = new Shape[5];
                        rulesetShapes [0] = new Shape (UnityEngine.GameObject.Find ("tShape"), RotationStyles.none, 0);
                        rulesetShapes [1] = new Shape (UnityEngine.GameObject.Find ("zShapeRight"), RotationStyles.none, 0);
                        rulesetShapes [2] = new Shape (UnityEngine.GameObject.Find ("zShapeLeft"), RotationStyles.none, 0);
                        rulesetShapes [3] = new Shape (UnityEngine.GameObject.Find ("lShapeRight"), RotationStyles.none, 0);
                        rulesetShapes [4] = new Shape (UnityEngine.GameObject.Find ("lShapeLeft"), RotationStyles.none, 0);

                        ShapeRuleset ruleset = new ShapeRuleset ();
                        ruleset.SetRuleset (2, 7, 4, rulesetShapes);
                        mRulesets.Add (ruleset);
        }