12345678910111213141516171819 |
- import { GAME_OBJECT_TYPE, PROP_TYPE } from "../../utrl/gameEnum";
- import GameObject from "../gameObject";
- const { ccclass, property } = cc._decorator;
- /**道具实体类 */
- @ccclass
- export default class PropObject extends GameObject {
- /**道具类型 */
- @property({
- type: cc.Enum(PROP_TYPE)
- })
- prop_type = PROP_TYPE.heal;
- /**道具id */
- @property
- id = 0;
- onLoad() {
- this.type = GAME_OBJECT_TYPE.prop;
- }
- }
|