Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Help!, Android plataform SCRIPT?

$
0
0
Hey guys, i have a Script Of animations to Play, works perfectly when the Target Plataform is PC, but, when i switch to Android, Give this error: Assets/Scripts/Player/PlayerAnimControl.js(25,28): BCE0019: 'isPlaying' is not a member of 'UnityEngine.AnimationState'. Here is my Script: var idle : AnimationClip; var run : AnimationClip; var flip : AnimationClip; var death : AnimationClip; function Start () { animation["flip"].layer = 2; animation.Play("idle"); } function OnGUI () { if(PlayerControl.Start==false){ animation.Play("idle"); } if(PlayerControl.Start==true){ animation.Play("run"); } if (GUI.Button(Rect(10,100,50,50),"Jump")) animation.CrossFade ("flip"); else if(!animation["flip"].isPlaying) animation.CrossFade ("run"); } any help will be awesome, thank you guys

Viewing all articles
Browse latest Browse all 7934


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>