1234567891011121314151617181920212223242526272829 |
- import Weapon from "./Weapon";
- import { WeaponType } from "./WeaponType";
- const {ccclass, property} = cc._decorator;
- @ccclass
- export default class Weapon_big extends Weapon {
-
- protected onLoad(): void {
- super.onLoad();
- this.weaponType = WeaponType.hold;
- }
- protected get handAnim(): string {
- if (this.weaponType == WeaponType.hold) {
- return "holdInHero_full";
- } else {
- return "holdInHero";
- }
- }
- protected get dropAnim(): string {
- if (this.weaponType == WeaponType.hold) {
- return "drop_full";
- } else {
- return "drop";
- }
- }
- }
|