IEnumerator CloseGateAndSpeakToPlayer() { GetComponent <Animator> ().SetTrigger("MoveUp"); TextNotifications.Create(TextNotifications.NotificationTypes.NORMAL, Color.red, 80, "OH NO YOU DON'T!"); yield return(new WaitForSeconds(2)); TextNotifications.Clear(); TextNotifications.Create(TextNotifications.NotificationTypes.NORMAL, Color.red, -1, "You'll have to get through the WHOLE maze now!"); yield return(new WaitForSeconds(2)); TextNotifications.Clear(); TextNotifications.Create(TextNotifications.NotificationTypes.NORMAL, Color.red, -1, "My guards should hold you off until the lava breaches your floor. "); yield return(new WaitForSeconds(3)); TextNotifications.Clear(); TextNotifications.Create(TextNotifications.NotificationTypes.NORMAL, Color.red, -1, "Actually, why don't we make this a bit more interesting..."); yield return(new WaitForSeconds(2)); TextNotifications.Clear(); //Crush the player (attempt to) transform.parent.FindChild("Bottom").GetComponent <Animator> ().SetTrigger("Crush"); TextNotifications.Create(TextNotifications.NotificationTypes.NORMAL, Color.red, -1, "Let's get you out of that pesky exit passage, shall we?"); }
public string Post([FromBody] OrderModel order) { // TODO - Determine if dependency injection is needed for the use of Twilio's API // TODO - Ensure that the first text message only notifies me that there's an alert TextNotifications textNotifications = new TextNotifications(); textNotifications.SendTextNotification(order); // TODO - Determine if Dependency Injection is needed for the use of Alpaca's API alpacaOrders alpacaClient = new alpacaOrders(); string orderConfirmation = alpacaClient.placeNewOrder(order); return($"You've received a TradingView alert for {order.ticker} which opened at ${order.open} today. {orderConfirmation}"); }
public void Initialize() { text = GetComponent <Text> (); instance = this; }