unity3d - unity2d instantiate prefab animator working partly -
OK, so my enemies are being urged in my main.js but the animator is connected to this prefab of the enemy (This is a phantom animation) For example it definitely works on enemies 0 will work 1 will not work 1,1,0,1,0,1,0,0,0,1,1,1,1, 1,1,1,1,1,0 and so this random happens even to my enemies between 6 and 9 seconds
I can not understand this problem after each other. :( (This seems to be an early game dev) almost done.
Thank you for your help. Stackoverflow community. / P>
#pragma Hard version enemy: GameAbject; Vari Speed : Float = 1.0; er animeime: animator; var isdying: boolean = foal; function start () {this.transform.position.x = 8.325;); Ennimanam = GetComponent (Animator); Enenim .Setflat ("ISEDAD", 0);} Function On Collision2D (coll.gameObject.CompareTag ("distroy")) {Destroy (enemy. GameObject);} (coll.gameObject. CompareTag ("player") and main.jumped == true) {isdying = true;}} function updates () {this.transform. Translation (vector 3 (Input Gatexis ("horizontal") * Speed * time daltatime, 0, 0)); This. Vivekcity = Vector 2 (-5,0); If (iidiid == true) {enimnim .setflat ("icedad", 1);}}
You are missing
enennim. Play ();
It is working and closed because some of your Emese editors are set to run automatically.
Comments
Post a Comment