private void Awake() { pdaID = GetComponent <NetworkIdentity>(); pickupable = GetComponent <Pickupable>(); storage = GetComponent <ItemStorage>(); flashlight = GetComponent <ItemLightControl>(); }
private void Awake() { pickupable = GetComponent <Pickupable>(); storage = GetComponent <ItemStorage>(); flashlight = GetComponent <ItemLightControl>(); actionButton = GetComponent <ItemActionButton>(); }
private IEnumerator LightsOutAfterTime(ItemLightControl lightController, SpriteHandler handler) { yield return(WaitFor.Seconds(runsOutOverSeconds)); lightController.Toggle(false); handler.SetSpriteSO(offSprite); }
private void Awake() { itemAttributes = GetComponent <ItemAttributesV2>(); lightControl = GetComponent <ItemLightControl>(); spriteHandler = GetComponentInChildren <SpriteHandler>(); if (color == SwordColor.Random) { // Get random color color = (SwordColor)Enum.GetValues(typeof(SwordColor)).GetValue(Random.Range(1, 5)); } }
private void Awake() { lightControl = GetComponent <ItemLightControl>(); if (runsOutOverTime) { destroyThisComponentOnOpen = false; offSprite = spriteHandler.GetCurrentSpriteSO(); } if (glowHandler != null) { glowHandler.SetActive(false); } if (actionButton == null) { return; } actionButton.ServerActionClicked += Open; }
private void Awake() { lightControl = GetComponent <ItemLightControl>(); actionButton = GetComponent <ItemActionButton>(); }
private void Awake() { itemAttributes = GetComponent <ItemAttributesV2>(); lightControl = GetComponent <ItemLightControl>(); spriteHandler = GetComponentInChildren <SpriteHandler>(); }
/// <summary> /// Grabs the "ItemLightControl" component from the current gameObject, used to toggle the light, only does this once /// </summary> private void Start() { lightControl = GetComponent <ItemLightControl>(); }
private void Awake() { fireSource = GetComponent <FireSource>(); pickupable = GetComponent <Pickupable>(); lightControl = GetComponent <ItemLightControl>(); }
private void Awake() { pickupable = GetComponent <Pickupable>(); lightControl = GetComponent <ItemLightControl>(); }
/// <summary> /// Grabs the "ItemLightControl" component from the current gameObject, used to toggle the light, only does this once /// </summary> private void Start() { lightControl = gameObject.GetComponent <ItemLightControl>(); }