Пример #1
0
        public static void CloseViewForObject(GameObject i_object)
        {
            ClosableObject closable = i_object.GetComponentInParent <ClosableObject>();

            if (closable)
            {
                closable.StartClose();
            }
            else
            {
                EasyLogger.Instance.Log(LogTypes.Error, "Went to close " + i_object.name + " but it wasn't closable.", "UI");
            }
        }
Пример #2
0
 protected void CloseView()
 {
     ClosableObject.CloseViewForObject(gameObject);
 }