Added tree grwoth camera animation, fixed combat camera state, fixed many errors in the console
This commit is contained in:
@@ -27,7 +27,10 @@ namespace Invector.vCharacterController
|
||||
[vEditorToolbar("Debug", order = 9)]
|
||||
[HideInInspector]
|
||||
public bool debugActionListener;
|
||||
public Animator animator { get; protected set; }
|
||||
public Animator animator
|
||||
{ get;
|
||||
protected set;
|
||||
}
|
||||
public bool ragdolled { get; set; }
|
||||
|
||||
[vEditorToolbar("Events")]
|
||||
|
||||
@@ -85,7 +85,9 @@ namespace Invector
|
||||
if (transform == null) return false;
|
||||
var animator = transform.GetComponent<Animator>();
|
||||
if (animator == null) return false;
|
||||
var leftFoot = animator.GetBoneTransform(HumanBodyBones.LeftFoot);
|
||||
Transform leftFoot = null;
|
||||
if (animator.isHuman)
|
||||
leftFoot = animator.GetBoneTransform(HumanBodyBones.LeftFoot);
|
||||
vFootStepTrigger leftFoot_trigger = null;
|
||||
if (leftFoot != null)
|
||||
leftFoot_trigger = leftFoot.GetComponentInChildren<vFootStepTrigger>();
|
||||
@@ -112,7 +114,9 @@ namespace Invector
|
||||
collider.radius = 0.1f;
|
||||
}
|
||||
|
||||
var rightFoot = animator.GetBoneTransform(HumanBodyBones.RightFoot);
|
||||
Transform rightFoot = null;
|
||||
if (animator.isHuman)
|
||||
rightFoot = animator.GetBoneTransform(HumanBodyBones.RightFoot);
|
||||
vFootStepTrigger rightFoot_trigger = null;
|
||||
if (rightFoot != null)
|
||||
rightFoot_trigger = rightFoot.GetComponentInChildren<vFootStepTrigger>();
|
||||
|
||||
Reference in New Issue
Block a user