Hello unity community iv made a little multiplayer game, my problem is that the other player cannot see my players animation, but i can?? and same with the other player, iv been trying to solve this for 4 straigt hour.
Anyways everything but THAT! works just fine.
can you guys help me?? Heres the AnimationScript:
#pragma strict
private var Soldier : Transform;
var animon = false;
function Start () {
Soldier = transform.FindChild("soldierNoScript");
if(networkView.isMine == true)
{
animon = true;
}
}
function Update () {
if (Input.GetAxis("Vertical") ||Input.GetAxis("Horizontal")){
if (animon == true){
Soldier.animation.CrossFade ("soldierWalk");
}
}
else
{
Soldier.animation.CrossFade ("soldierIdle");
}
}
Thanks in advance Guys ^^