Пример #1
0
 void PlaySound(AudioSource source)
 {
     if (Temp.Get().IsPlayingSoundEffect())
     {
         source.Play();
     }
 }
Пример #2
0
 public void PlaySound()
 {
     if (Temp.Get().IsPlayingSoundEffect())
     {
         _effectSound.Play();
     }
 }
Пример #3
0
 void PlaySound(AudioSource source)
 {
     if (Temp.Get().IsPlayingSoundBG())
     {
         source.Play();
     }
     _currentSound = source;
 }
Пример #4
0
        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);
            });
        }
Пример #5
0
        public IEnumerable <string> Get()
        {
            Temp temp = new Temp();

            return(temp.Get());
        }