Exemplo n.º 1
0
    private void OnDeath()
    {
        characterGroup.Remove(Character);

        if (deathCollection != null)
        {
            deathCollection.Add(Character);
        }

        Character.gameObject.SetActive(false);
    }
Exemplo n.º 2
0
 private void OnCharacterDied(CharacterModel character)
 {
     CharacterCollection.Remove(character);
     character.Owner.CheckState(this);
 }
Exemplo n.º 3
0
 void OnDisable()
 {
     _allCharactersInScene.Remove(this);
 }