Exemplo n.º 1
0
 private void Awake()
 {
     pdaID      = GetComponent <NetworkIdentity>();
     pickupable = GetComponent <Pickupable>();
     storage    = GetComponent <ItemStorage>();
     flashlight = GetComponent <ItemLightControl>();
 }
Exemplo n.º 2
0
 private void Awake()
 {
     pickupable   = GetComponent <Pickupable>();
     storage      = GetComponent <ItemStorage>();
     flashlight   = GetComponent <ItemLightControl>();
     actionButton = GetComponent <ItemActionButton>();
 }
Exemplo n.º 3
0
        private IEnumerator LightsOutAfterTime(ItemLightControl lightController, SpriteHandler handler)
        {
            yield return(WaitFor.Seconds(runsOutOverSeconds));

            lightController.Toggle(false);
            handler.SetSpriteSO(offSprite);
        }
Exemplo n.º 4
0
 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));
     }
 }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
 private void Awake()
 {
     lightControl = GetComponent <ItemLightControl>();
     actionButton = GetComponent <ItemActionButton>();
 }
Exemplo n.º 7
0
 private void Awake()
 {
     itemAttributes = GetComponent <ItemAttributesV2>();
     lightControl   = GetComponent <ItemLightControl>();
     spriteHandler  = GetComponentInChildren <SpriteHandler>();
 }
Exemplo n.º 8
0
 /// <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>();
 }
Exemplo n.º 9
0
 private void Awake()
 {
     fireSource   = GetComponent <FireSource>();
     pickupable   = GetComponent <Pickupable>();
     lightControl = GetComponent <ItemLightControl>();
 }
Exemplo n.º 10
0
 private void Awake()
 {
     pickupable   = GetComponent <Pickupable>();
     lightControl = GetComponent <ItemLightControl>();
 }
Exemplo n.º 11
0
 /// <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>();
 }