public void Setn(ScrollObj Obj, int x, int y) { transform.localPosition = new Vector3(x, y) * -Obj.g; GetComponent <UIPanel> ().clipOffset = -transform.localPosition; }
public int Getn(ScrollObj Obj) { return((int)MyCalculate.SaladMod((-transform.localPosition.y + Obj.g / 2) / Obj.g, Obj.ObjL)); }