void Update() { if (Mathf.Abs(x) > 0 || Mathf.Abs(z) > 0) { UpdateFacing(); } fctrl.SetFrame(Mathf.Abs(facing)); }
public void Mode3() { fctrl.Hide(); fctrl = frameSets[2]; fctrl.SetFrame(facing); }
public void OnEnable() { timer = Time.time; ctrl.SetFrame(frameId); }
public void Start() { fctrl.SetFrame(0); }