| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- import { _decorator, Color, Component, Node } from 'cc';
- const { ccclass, property } = _decorator;
- @ccclass('CubeConfig')
- export class CubeConfig {
-
- }
- export const IdToName: { [key: number]: string } = {
- 0:'redCube',
- 1:'blueCube',
- 2:'greenCube',
- 3:'yellowCube',
- 4:'greyCube'
- };
- export const config={
- redCube:{
- id:0,
- //:new Color(255, 105, 180),
- effectName:'red'
- } as cube,
- blueCube:{
- id:1,
- //color:new Color(102, 153, 204),
- effectName:'blue'
- } as cube,
- greenCube:{
- id:2,
- //color:new Color(144, 238, 144),
- effectName:'green'
- } as cube,
- yellowCube:{
- id:3,
- //color:new Color(255, 255, 64),
- effectName:'yellow'
- } as cube,
- greyCube:{
- id:4,
- //color:new Color(255, 255, 64),
- effectName:'grey'
- } as cube
- }
- type cube={
- id:number,
- color:Color,
- effectName:string
- }
|