예제 #1
0
        public override void OnRemove()
        {
            if (Health != null) {
                Health.Killed -= OnKilled;
            }

            Health = null;
        }
예제 #2
0
        public override void OnSpawn()
        {
            Health = Entity.GetComponentOrNull<Health>();

            if (Health != null) {
                Health.Killed += OnKilled;
            }
        }