소스 검색

增加礼盒预设

zhaochengyang 5 년 전
부모
커밋
87fe1fe46a

BIN
bin/LotteryView/tinified.zip


BIN
laya/assets/InGameView/Box-01.png


bin/Game/res/Skin/giftbox.png → laya/assets/InGameView/giftbox.png


BIN
laya/assets/InGameView/kuang.png


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 0
laya/pages/GiftPrefab/Gift.prefab


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 0
laya/pages/GiftPrefab/TimeGift.prefab


+ 117 - 2
laya/pages/InGameScene.scene

@@ -2,11 +2,11 @@
     "x":0,
     "type":"Scene",
     "selectedBox":2,
-    "selecteID":738,
+    "selecteID":749,
     "searchKey":"Scene",
     "props":{"width":720,"sceneColor":"#000000","pref":"@Prefab:Pr","height":1280,"autoDestroyAtClosed":true},
     "nodeParent":-1,
-    "maxID":740,
+    "maxID":750,
     "label":"Scene",
     "isOpen":true,
     "isDirectory":true,
@@ -662,6 +662,121 @@
                         ]
                 }],
             "$HIDDEN":true
+        },
+        {
+            "x":15,
+            "type":"Image",
+            "searchKey":"Image",
+            "props":{"y":827,"x":280,"presetID":1,"preset":"laya/pages/GiftPrefab/Gift.prefab"},
+            "nodeParent":2,
+            "label":"Image(Gift)",
+            "isOpen":false,
+            "isDirectory":true,
+            "isAniNode":true,
+            "hasChild":true,
+            "compId":748,
+            "child":[
+                {
+                    "type":"ChainCollider",
+                    "switchAble":true,
+                    "searchKey":"ChainCollider",
+                    "removeAble":true,
+                    "props":{"presetID":2,"preset":"laya/pages/GiftPrefab/Gift.prefab"},
+                    "nodeParent":748,
+                    "label":"ChainCollider(Gift)",
+                    "isDirectory":false,
+                    "isAniNode":true,
+                    "hasChild":false,
+                    "compId":746,
+                    "child":[
+                        ]
+                },
+                {
+                    "type":"RigidBody",
+                    "switchAble":true,
+                    "searchKey":"RigidBody",
+                    "removeAble":true,
+                    "props":{"presetID":3,"preset":"laya/pages/GiftPrefab/Gift.prefab"},
+                    "nodeParent":748,
+                    "label":"RigidBody(Gift)",
+                    "isDirectory":false,
+                    "isAniNode":true,
+                    "hasChild":false,
+                    "compId":747,
+                    "child":[
+                        ]
+                }]
+        },
+        {
+            "x":15,
+            "type":"Image",
+            "searchKey":"Image",
+            "props":{"y":809,"x":415,"presetID":1,"preset":"laya/pages/GiftPrefab/TimeGift.prefab"},
+            "nodeParent":2,
+            "label":"Image(TimeGift)",
+            "isOpen":false,
+            "isDirectory":true,
+            "isAniNode":true,
+            "hasChild":true,
+            "compId":749,
+            "child":[
+                {
+                    "type":"Image",
+                    "searchKey":"Image",
+                    "props":{"presetID":2,"preset":"laya/pages/GiftPrefab/TimeGift.prefab"},
+                    "nodeParent":749,
+                    "label":"kuang",
+                    "isOpen":true,
+                    "isDirectory":false,
+                    "isAniNode":true,
+                    "hasChild":false,
+                    "compId":742,
+                    "child":[
+                        ]
+                },
+                {
+                    "type":"ChainCollider",
+                    "switchAble":true,
+                    "searchKey":"ChainCollider",
+                    "removeAble":true,
+                    "props":{"presetID":3,"preset":"laya/pages/GiftPrefab/TimeGift.prefab"},
+                    "nodeParent":749,
+                    "label":"ChainCollider(TimeGift)",
+                    "isDirectory":false,
+                    "isAniNode":true,
+                    "hasChild":false,
+                    "compId":744,
+                    "child":[
+                        ]
+                },
+                {
+                    "type":"RigidBody",
+                    "switchAble":true,
+                    "searchKey":"RigidBody",
+                    "removeAble":true,
+                    "props":{"presetID":4,"preset":"laya/pages/GiftPrefab/TimeGift.prefab"},
+                    "nodeParent":749,
+                    "label":"RigidBody(TimeGift)",
+                    "isDirectory":false,
+                    "isAniNode":true,
+                    "hasChild":false,
+                    "compId":745,
+                    "child":[
+                        ]
+                },
+                {
+                    "type":"Text",
+                    "searchKey":"Text",
+                    "props":{"presetID":5,"preset":"laya/pages/GiftPrefab/TimeGift.prefab"},
+                    "nodeParent":749,
+                    "label":"CountDown",
+                    "isDirectory":false,
+                    "isAniNode":true,
+                    "hasChild":false,
+                    "compId":743,
+                    "child":[
+                        ]
+                }]
         }],
     "animations":[
         {

+ 25 - 0
src/Main/Gift.ts

@@ -0,0 +1,25 @@
+export default class Gift extends Laya.Script{
+    private static ins:Gift;
+    constructor(){
+        super();
+        Gift.ins = this;
+    }
+    public static get Instance():Gift{
+        if(Gift.ins){
+            return Gift.ins
+        }
+        else{
+            return new Gift();
+        }
+    }
+    onAwake(){
+
+    }
+    onUpdate(){
+
+    }
+    onEnable(){
+
+    }
+    
+}