private List <GameObject> GetEnemies(CheckTargetType type)
    {
        List <GameObject> result = new List <GameObject>();

        switch (type)
        {
        case CheckTargetType.Ghost:
            result = GameplayManager.Instance.GhostOnMap;
            break;

        case CheckTargetType.Player:
            var player = GameplayManager.Instance.Player;
            result.Add(player.gameObject);
            break;

        default:
            throw new Exception("CheckEnemy: Type not defined");
        }

        return(result);
    }
 public void Init(CheckTargetType enemyType)
 {
     TargetType = enemyType;
 }