void PlaySound(AudioSource source) { if (Temp.Get().IsPlayingSoundEffect()) { source.Play(); } }
public void PlaySound() { if (Temp.Get().IsPlayingSoundEffect()) { _effectSound.Play(); } }
void PlaySound(AudioSource source) { if (Temp.Get().IsPlayingSoundBG()) { source.Play(); } _currentSound = source; }
protected override async Task <Action <AsyncCodeActivityContext> > ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken) { // Inputs var inputFolder = Input.Get(context); var outputFolder = Output.Get(context); var tempFolder = Temp.Get(context); var reportsFolder = Reports.Get(context); var exscreenshotsFolder = ExScreenshots.Get(context); var result = true; /////////////////////////// // Create FrameworkFolders entity var frameworkFolders = new FrameworkFolders(inputFolder, outputFolder, tempFolder, reportsFolder, exscreenshotsFolder); // If argument has value, check if it was correctly assigned if (inputFolder != null && frameworkFolders.Input != inputFolder) { result = false; } if (outputFolder != null && frameworkFolders.Output != outputFolder) { result = false; } if (tempFolder != null && frameworkFolders.Temp != tempFolder) { result = false; } if (reportsFolder != null && frameworkFolders.Reports != reportsFolder) { result = false; } if (exscreenshotsFolder != null && frameworkFolders.ExScreenshots != exscreenshotsFolder) { result = false; } /////////////////////////// // Outputs return((ctx) => { FrameworkFolders.Set(ctx, frameworkFolders); Result.Set(ctx, result); }); }
public IEnumerable <string> Get() { Temp temp = new Temp(); return(temp.Get()); }