private void Awake() { _eventObject = gameObject.GetComponent <HonoEventObject>(); if (_eventObject == null) { Log.Warning("An event object [{0}, eo: {1}, ac: {2}] cannot be signed."); this.enabled = false; } }
public void SetVisible(Boolean value, Boolean isBattle) { HonoEventObject component = base.GetComponent <HonoEventObject>(); component.SetVisible(value); if (!value) { return; } if (isBattle) { Transform transform = component.transform.FindChild("field_model"); if (transform == (UnityEngine.Object)null) { return; } Renderer[] componentsInChildren = transform.GetComponentsInChildren <Renderer>(); Renderer[] array = componentsInChildren; for (Int32 i = 0; i < (Int32)array.Length; i++) { Renderer renderer = array[i]; renderer.enabled = false; } } else { Transform transform2 = component.transform.FindChild("battle_model"); if (transform2 == (UnityEngine.Object)null) { return; } Renderer[] componentsInChildren2 = transform2.GetComponentsInChildren <Renderer>(); Renderer[] array2 = componentsInChildren2; for (Int32 j = 0; j < (Int32)array2.Length; j++) { Renderer renderer2 = array2[j]; renderer2.enabled = false; } } }
public void SetEnabled(Boolean value) { HonoEventObject component = base.GetComponent <HonoEventObject>(); component.SetEnabled(value); }
public Boolean IsEnabled() { HonoEventObject component = base.GetComponent <HonoEventObject>(); return(component.IsEnabled()); }