Example #1
0
        private void Awake()
        {
            removalProcessor = GetComponent <IRemovalProcessor>();

            timer = new DownTimer(0f);
            timer.DisableTimer();
            ((DownTimer)timer).OnTimerEnd += removalProcessor.Remove;
        }
Example #2
0
 private void Awake()
 {
     removalProcessor          = GetComponent <IRemovalProcessor>();
     noCasterEntitiesExtractor = new GetEntitiesWithoutCaster <IDamageable>();
 }
        public void Init(GameObject owner)
        {
            this.owner = owner;

            removalProcessor = GetComponent <IRemovalProcessor>();
        }
    private void Awake()
    {
        removalProcessor = GetComponent <IRemovalProcessor>();

        ResetHealth();
    }