/** * <summary>Registers a ConstantID component in the Hierarchy</summary> * <param name = "constantID">The ConstantID to register</param> */ public void Register(ConstantID constantID) { if (constantID is Remember) { Canvas canvas = constantID.transform.root.GetComponent <Canvas>(); if (canvas && canvas.gameObject.IsPersistent()) { MenuConstantIDs.Add(constantID); return; } } ConstantIDs.Add(constantID); }
/** * <summary>Registers a ConstantID component in the Hierarchy</summary> * <param name = "constantID">The ConstantID to register</param> */ public void Register(ConstantID constantID) { ConstantIDs.Add(constantID); }