修改角色包
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace MuHua {
|
||||
public class PlayerKinesisAttack : Ikinesis {
|
||||
|
||||
public string animName = "Attack01";
|
||||
public bool animEnd = false;
|
||||
|
||||
public override string AnimName => animName;
|
||||
public override bool Interrupt => animEnd;
|
||||
|
||||
public override void AnimationEnd() => animEnd = true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6c910b7b6bba29d4381c9bb1d615ff77
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,10 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace MuHua {
|
||||
public class PlayerKinesisIdle : Ikinesis {
|
||||
public override string AnimName => "Idle";
|
||||
public override bool Interrupt => true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 190d2b1706b7e0b42b9700950c4e2c18
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,31 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace MuHua {
|
||||
public class PlayerKinesisMove : Ikinesis {
|
||||
public Vector3 position;
|
||||
public Movement movement;
|
||||
public Animator animator;
|
||||
public PlayerCharacter character;
|
||||
public Ikinesis transition = new PlayerKinesisIdle();
|
||||
|
||||
public override string AnimName => "Move";
|
||||
public override bool Interrupt => true;
|
||||
|
||||
public PlayerKinesisMove(Vector3 position, PlayerCharacter character) {
|
||||
this.position = position;
|
||||
this.movement = character.movement;
|
||||
this.animator = character.animator;
|
||||
this.character = character;
|
||||
}
|
||||
|
||||
public override void Update() {
|
||||
if (movement.UpdateMove(position)) { character.Updatekinesis(transition); }
|
||||
|
||||
animator.SetFloat("MoveSpeed", movement.CurrentSpeed);
|
||||
animator.SetFloat("MoveX", movement.Direction.x);
|
||||
animator.SetFloat("MoveZ", movement.Direction.z);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7c4416dfc61926e439368a6fd3b26675
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user