Exemplo n.º 1
0
	public static bool EffectIsValidAtPos(Vector3 p_pos, E_EFFECT_WORLD p_effectWorld) {
		switch (p_effectWorld) {
		case E_EFFECT_WORLD.Base:   // In God World Can't Trigger
			if (RealmManager.IsInRealm(p_pos)) {
				return false;
			}
			break;
		case E_EFFECT_WORLD.God:    // In Base World Can't Trigger
			if (!RealmManager.IsInRealm(p_pos)) {
				return false;
			}
			break;
		case E_EFFECT_WORLD.Both:   // Always Trigger
			break;
		default:                    // Not Trigger
			return false;
			break;
		}

		return true;
	}