Beispiel #1
0
        private void OnSceneLoaded(Scene scene, LoadSceneMode mode)
        {
            if (!Game.AddPiece)
            {
                return;
            }

            tabController   = FindObjectOfType <BlockTabController>();
            hudInputControl = FindObjectOfType <HudInputControl>();

            tabIndices = new int[7]
            {
                4, 0, 6, 1, 2, 3, 5
            };
            currentTab = 0;

            blockIndices = new int[7][]
            {
                new int[9] {
                    0, 1, 2, 4, 3, -1, -1, -1, -1
                },                                         // Fundamentals
                new int[9] {
                    0, 1, 11, 2, 3, 4, 5, 6, 7
                },                                          // Blocks
                new int[9] {
                    9, 10, 0, 6, 4, 5, 2, 7, 8
                },                                         // Locomotion
                new int[9] {
                    1, 2, 4, 3, 5, 7, 6, 0, -1
                },                                         // Mechanical
                new int[9] {
                    5, 1, 4, 12, 2, 13, 0, 6, 15
                },                                         // Weaponry
                new int[9] {
                    0, 1, 6, 2, 3, 4, 5, -1, -1
                },                                         // Flight
                new int[9] {
                    0, 1, 2, 3, 4, 5, 6, -1, -1
                },                                         // Armour
            };
        }
 public void CopyFrom(HudInputControl o)
 {
     this.toDisable = o.toDisable;
 }
 public void CopyFrom(HudInputControl o)
 {
     this.toDisable = o.toDisable;
 }