void SetPinchAnimation() { CursorSprite c = curosrSprite.GetComponent <CursorSprite> (); if (c != null) { c.ani.SetInteger("pinch", GetPinch()); } }
static void setCursor(CursorSprite cs, CursorStatus csfrom, CursorStatus csto, float f) { setSpriteAlpha(cs.sprite, Mathf.Lerp(csfrom.alpha, csto.alpha, f)); setSpriteScale(cs.sprite, Mathf.Lerp(csfrom.scale, csto.scale, f)); setSpriteRotation(cs.sprite, Mathf.Lerp(csfrom.rotation, csto.rotation, f)); }
static void setCursor(CursorSprite cs, CursorStatus css) { setSpriteAlpha(cs.sprite, css.alpha); setSpriteScale(cs.sprite, css.scale); setSpriteRotation(cs.sprite, css.rotation); }
/* * Before the first step */ void Awake() { instance = this; }