gameover.blog.ir
برای merge یا ادغام دو انیمیشن با یکدیگر بکار میره، و پس از اجرای انیمیشن اول ، انیمیشن دوم اجرا میشه.
شکل کلی:
public void Blend(string animation, float targetWeight = 1.0F, float fadeLength = 0.3F);
مثال:
float maxSpeed = 25;
float weightRun = speed / maxSpeed;
float weightWalk = 1 - weightRun;
animation.Blend("walk", weightWalk, 0.1);
animation.Blend("run", weightRun, 0.1);
برچسب:
نویسنده: ایلیا حیدری