コード例 #1
0
    public void AddRotationBefore(Transform t)
    {
        UIRotationOption inst = Instantiate(prefab, transform);

        inst.transform.SetSiblingIndex(t.GetSiblingIndex() - 1);
        rotations.Add(inst);
        inst.gameObject.SetActive(true);
    }
コード例 #2
0
 public void RemoveRotation(UIRotationOption option)
 {
     rotations.Remove(option);
     Destroy(option.gameObject);
 }