Villarger_C_Chief_NPC V 1.2

==============================================================

Villarger_Chief [3D Model] < V 1.2

==============================================================







< Update info 12_6



-----------------------------------------------------

1. Fixed 2 Animations [RunAttack],[AttackStandy]



2. Add 6 animations

[Combo1_1],[Combo1_2],[Combo1_3],[M_Avoid],[L_Avoid],[R_Avoid]

-----------------------------------------------------









< asset info



-----------------------------------------------------

model

-----------------------------------------------------



Lod 1



2430 tris

1290 verts





Lod 2



1630 tris



954 verts



[ No Alpha map! No Stress!!]



[ biped has been set up.]













----------------------------------------------------

Includes 18 Animations

----------------------------------------------------





Idle



Talk



Walk



Run [No Draw Sword]



Jump [No Draw Sword]



Draw Sword



Put Sword



Attack standy



Attack



Attack01



Block



Block Attack



Run



RunAttack



Jump



Pick Up



Damage



Death





==============================================================

Please refer to below script [Attack] + [Run]

==============================================================

public class PlayerAnimation : MonoBehaviour

{



PlayerMove playerMove;

Animation animation;





void Start ()

{

playerMove = GetComponent();

animation = GetComponentInChildren();

animation["Idle"].wrapMode = WrapMode.Loop;

animation["Run01"].wrapMode = WrapMode.Loop;

animation["Attack00"].wrapMode = WrapMode.Once;

animation["Rum01"].speed = 2f;

animation["Attack00"].layer =1;

Transform mt = transform.Find("Blade_Warrior_Prefab/Blade_male/Blade_male Pelvis/Blade_male Spine");

animation["Attack00"].AddMixingTransform(mt);

}





void Update ()

{

if(Vector3.Distance(transform.position,playerMove.destPoint)2)

{

//run

if(animation.IsPlaying("Attack00")==false)

animation.CrossFade("Run");

}

else

{

//idle

if(animation.IsPlaying("Attack00")==false)

animation.CrossFade("Idle");

}

if(Input.GetMouseButtonDown(1))

{ //0으로 실행하면 더 빠르게 실행된다.

animation.CrossFadeQueued("Attack00",0.2f, QueueMode.PlayNow);

}

}



}

==============================================================

Demo Scene

==============================================================

http://kimys2848.nayana.com/npc/cvillarger/villargerc.html

Powered by