// Update is called once per frame void Update() { if (Input.GetKeyDown(quitKey)) { timer = 0; } if (Input.GetKey(quitKey)) { timer += Time.deltaTime; var tempColor = dark.color; tempColor.a = (timer / holdTime); dark.color = tempColor; if (timer > holdTime) { print(BaneTools.ColorString("Quit Successfully", BaneTools.Color255(255, 0, 0))); Application.Quit(); } } if (Input.GetKeyUp(quitKey)) { var tempColor = dark.color; tempColor.a = 0; dark.color = tempColor; } }
void TargetReached() { targetReached = true; print(string.Format(BaneTools.ColorString("Plate Target Reached!", BaneTools.Color255(255, 100, 100)))); //Do stuff here result.Invoke(); }
public void TestSuccess() { print(string.Format(BaneTools.ColorString("Called successfully!", BaneTools.Color255(100, 255, 100)))); }