Example #1
0
 private void ShowError(string message)
 {
     error.text    = message;
     error.enabled = true;
     UIFader.CancelCurrent();
     UIFader.FadeIn(error, 0.1f);
     UIFader.FadeOut(error, 3.0f, 1.0f);
 }
Example #2
0
    private void ShowSelectedBlock(Block block)
    {
        string name = block.Name();

        selectedText.text = name;

        UIFader.CancelCurrent();

        UIFader.FadeIn(selectedPanel, 0.1f);
        UIFader.FadeIn(selectedText, 0.1f);

        UIFader.FadeOut(selectedPanel, 2.0f, 0.5f);
        UIFader.FadeOut(selectedText, 2.0f, 0.5f);
    }