Exemplo n.º 1
0
        public void Get_WasNotSet_ReturnsDefaultValue()
        {
            var variable1 = new IntVariable("Var1", 1);
            var variable2 = new StringVariable("Var2", "default");

            Assert.That(variable1.DefaultValue, Is.EqualTo(1));
            Assert.That(variable1.Get(_storage), Is.EqualTo(variable1.DefaultValue));

            Assert.That(variable2.DefaultValue, Is.EqualTo("default"));
            Assert.That(variable2.Get(_storage), Is.EqualTo(variable2.DefaultValue));
        }
Exemplo n.º 2
0
 public void CloseCard()
 {
     if (currentPlayerId != null)
     {
         if (currentPlayerId.Get() != null)
         {
             AudioScriptableObjects.dialogClose.Play(true);
         }
     }
     currentPlayerId.Set(null);
 }