Пример #1
0
 void Update()
 {
     if (Mathf.Abs(x) > 0 || Mathf.Abs(z) > 0)
     {
         UpdateFacing();
     }
     fctrl.SetFrame(Mathf.Abs(facing));
 }
Пример #2
0
 public void Mode3()
 {
     fctrl.Hide();
     fctrl = frameSets[2];
     fctrl.SetFrame(facing);
 }
Пример #3
0
 public void OnEnable()
 {
     timer = Time.time;
     ctrl.SetFrame(frameId);
 }
Пример #4
0
 public void Start()
 {
     fctrl.SetFrame(0);
 }
Пример #5
0
 public void Mode3()
 {
     fctrl.Hide();
     fctrl = frameSets[2];
     fctrl.SetFrame(facing);
 }