public void AddButton(GameObject button) { if (_targetButtons == null) { _targetButtons = new List <GameObjectSaver>(); } var holder = InstanceIdHolder.AddIdHolder(button); _targetButtons.Add(new GameObjectSaver(holder)); }
public static List <GameObjectSaver> Covert2List(List <GameObject> objList) { var result = new List <GameObjectSaver>(); foreach (var obj in objList) { var holder = InstanceIdHolder.AddIdHolder(obj); result.Add(new GameObjectSaver(holder)); } return(result); }
public void SetObject(TransitionState state, GameObject obj) { var holder = InstanceIdHolder.AddIdHolder(obj); _instanceIdDic.Add(state, holder.GetInstanceID()); }