public virtual void Dispose()
 {
     _damageable.Dispose();
     _moveController.Dispose();
     _animationController.Dispose();
     UnsubscribeToEvents();
 }
Exemplo n.º 2
0
        public void Dispose()
        {
            foreach (var person in _persons)
            {
                person.Dispose();
            }
            _persons.Clear();
            foreach (Transform child in _arenaRectTransform)
            {
                UnityEngine.Object.Destroy(child.gameObject);
            }

            _moveController.Dispose();
        }