Esempio n. 1
0
        static void Main(string[] args)
        {
            Yo heredo = new Yo();

            Console.WriteLine("yo heredo de mi padre:");
            heredo.Padre();
            Console.WriteLine("yo heredo de mi madre:");
            heredo.Madre();
            Console.ReadKey();
        }
    public override void Execute()
    {
        GetComponent <Renderer>().material.color = warningColor;
        Vector3 playerPos = GameObject.Find("Player").transform.position;

        transform.LookAt(playerPos);
        if (CheckDistanceToPlayer() <= actDistance)
        {
            print("cambio a Act");
            Yo.SetNewState(NextState);
        }
    }
Esempio n. 3
0
 public override void Execute()
 {
     GetComponent <Renderer>().material.color = actingColor;
     if (btRoot != null)
     {
         btRoot.Execute();
     }
     if (CheckDistanceToPlayer() >= GetComponent <Idle>().WarningDistance)
     {
         print("aaaaaaaaaaaaa");
         Yo.SetNewState(NextState);
     }
 }
Esempio n. 4
0
            public void MultiMatchShouldCreateClass()
            {
                string value = "hello";
                var    list  = new List <Yo>();
                var    item  = new Yo {
                    Key = value,
                };

                list.Add(item);
                list.Add(item);
                var result = list.SingleOrCreate(x => x.Key == value, () => new Yo {
                    Key = value,
                });
            }
Esempio n. 5
0
            public void OneMatchShouldCreateClass()
            {
                string value = "hello";
                var    list  = new List <Yo>();
                var    item  = new Yo {
                    Key = value,
                };

                list.Add(item);
                var result = list.SingleOrCreate(x => x.Key == value, () => new Yo {
                    Key = value,
                });

                Assert.IsNotNull(result);
                Assert.AreSame(item, result);
                Assert.AreEqual(value, result.Key);
                Assert.AreEqual(1, list.Count);
            }
Esempio n. 6
0
            public void MultiMatchShouldReturnLastClass()
            {
                string value = "hello";
                var    list  = new List <Yo>();
                var    item1 = new Yo {
                    Key = value,
                };

                list.Add(item1);
                var item2 = new Yo {
                    Key = value,
                };

                list.Add(item2);
                var result = list.LastOrCreate(x => x.Key == value, () => new Yo {
                    Key = value,
                });

                Assert.IsNotNull(result);
                Assert.AreSame(item2, result);
                Assert.AreEqual(value, result.Key);
                Assert.AreEqual(2, list.Count);
            }
Esempio n. 7
0
 public string Echo(Yo yo) => yo.ToString();
Esempio n. 8
0
 public Task <string> Echo2(Yo yo) => GetServerHubProxy <MasterForUnitTest>().Single.Echo(yo);
Esempio n. 9
0
 public virtual async Task <string> Echo(Yo yo) => yo.ToString();
Esempio n. 10
0
 public virtual async Task<string> Echo(Yo? yo) => yo?.ToString() ?? "null";
Esempio n. 11
0
 public virtual async Task<string> Echo(Yo yo) => yo.ToString();
Esempio n. 12
0
 public string Echo(Yo? yo) => yo?.ToString() ?? "null";
Esempio n. 13
0
 public string Echo(Yo yo) => yo.ToString();
Esempio n. 14
0
 public Task<string> Echo2(Yo? yo) => GetServerHubProxy<MasterForUnitTest>().Single.Echo(yo);