Example #1
0
 public override void SetTarget(GameObject target)
 {
     this.target = target;
     if ((UnityEngine.Object)target == (UnityEngine.Object)null)
     {
         Debug.LogError((object)"The target object provided was null");
     }
     else
     {
         this.targetFilterable = target.GetComponent <GridFilterable>();
         if ((UnityEngine.Object) this.targetFilterable == (UnityEngine.Object)null)
         {
             Debug.LogError((object)"The target provided does not have a Grid Filterable component");
         }
         else if (!this.targetFilterable.showUserMenu)
         {
             DetailsScreen.Instance.DeactivateSideContent();
         }
         else if (this.IsStorage && !this.storage.showInUI)
         {
             DetailsScreen.Instance.DeactivateSideContent();
         }
         else
         {
             this.storage = this.targetFilterable.GetComponent <Storage>();
             GridFilterableControl.Instance.Update(this);
         }
     }
 }
Example #2
0
        private static void OnCopySettings(GridFilterable filterable, object data)
        {
            GridFilterable component = ((GameObject)data).GetComponent <GridFilterable>();

            if (!((UnityEngine.Object)component != (UnityEngine.Object)null))
            {
                return;
            }
            //filterable.UpdateFilters((IList<Tag>)component.GetTags());
        }
Example #3
0
        public void Initialize(GridFilterable target)
        {
            if (target == null)
            {
                Debug.LogError((object)"GRID SELECT CONTROL: provided was null.");
            }

            Debug.Log("GRID SELECT CONTROL: Initialized");
            this.targetFilterable = target;
            this.gameObject.SetActive(true);
        }