private async void Button_Clicked(object sender, EventArgs e) { await DisplayAlert("Thanos", "You should have gone for the head.", "SNAP!"); Thanos.IsVisible = true; await Thanos.RotateTo(360, 1000, Easing.CubicInOut); for (int i = 0; i < 4; i++) { Emails.RemoveAt(Emails.Count - 1); } Thanos.IsVisible = false; }
private Coroutine m_GameRoutine; // a reference to out coroutine that store our Ienumerator. // Start is called before the first frame update void Start() { // Finds an array of all the heroes in my scene, and converts it to a list. allHeroes = FindObjectsOfType <Hero>().ToList(); // Create a copy of the all heroes list. heroesLeft = FindObjectsOfType <Hero>().ToList(); // a reference to our Thanos script thanos = FindObjectOfType <Thanos>(); // An example of using a couroutine if (m_GameRoutine != null) { StopCoroutine(m_GameRoutine); } m_GameRoutine = StartCoroutine(GameTurns()); }
public void Luta() { CapitaoModel Capitao = new CapitaoModel(); HomemeDeFerroModel homemDeFerro = new HomemeDeFerroModel(); Thanos thanos = new Thanos(); }