Exemple #1
0
 private void OnEnable()
 {
     if (!RecycleComp)
     {
         RecycleComp = GetComponent <ARecyclable>();
     }
 }
    private void OnEnable()
    {
        if (!RecyclableComp)
        {
            RecyclableComp = GetComponent <ARecyclable>();
        }

        if (!Timer)
        {
            Timer = GetComponent <DSingleFireTimer>();
        }
        if (Timer)
        {
            Timer.OnTimerFired.AddListener(Recycle);
        }
    }