Example #1
0
    public void ResetObjectIC(GameObject go)
    {
        ICStorage s = FindObjectIC(go);

        if (s != null)
        {
            go.transform.position    = s.position;
            go.transform.eulerAngles = s.rotation;
        }
    }
Example #2
0
    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;
    }