public void ResetObjectIC(GameObject go) { ICStorage s = FindObjectIC(go); if (s != null) { go.transform.position = s.position; go.transform.eulerAngles = s.rotation; } }
public void SetObjectIC(GameObject go) { ICStorage s = FindObjectIC(go); if (s == null) { s = new ICStorage(); s.go = go; storage.Add(s); } s.position = go.transform.position; s.rotation = go.transform.eulerAngles; }