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); } }
public override void Execute() { GetComponent <Renderer>().material.color = actingColor; if (btRoot != null) { btRoot.Execute(); } if (CheckDistanceToPlayer() >= GetComponent <Idle>().WarningDistance) { print("aaaaaaaaaaaaa"); Yo.SetNewState(NextState); } }
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, }); }
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); }
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); }
public string Echo(Yo yo) => yo.ToString();
public Task <string> Echo2(Yo yo) => GetServerHubProxy <MasterForUnitTest>().Single.Echo(yo);
public virtual async Task <string> Echo(Yo yo) => yo.ToString();
public virtual async Task<string> Echo(Yo? yo) => yo?.ToString() ?? "null";
public virtual async Task<string> Echo(Yo yo) => yo.ToString();
public string Echo(Yo? yo) => yo?.ToString() ?? "null";
public string Echo(Yo yo) => yo.ToString();
public Task<string> Echo2(Yo? yo) => GetServerHubProxy<MasterForUnitTest>().Single.Echo(yo);