void Start()
    {
        glyphInput = GetComponent <GlyphDrawInput>();
        glyphInput.OnGlyphCast.AddListener(this.OnGlyphCast);

        if (glyphInput.OnStrokeDraw != this.OnStrokeDraw)
        {
            glyphInput.OnStrokeDraw += this.OnStrokeDraw;
        }
        if (glyphInput.OnPointDraw != this.OnPointDraw)
        {
            glyphInput.OnPointDraw += this.OnPointDraw;
        }

        //StartCoroutine(CleanScreen());

        // Add Glyph Colour
        glyphColours.Add("fireball", new Color(1f, 0, 0));
        glyphColours.Add("shield", new Color(113 / 255f, 199 / 255f, 1f));
        glyphColours.Add("windslash", new Color(26 / 255f, 1f, 0));
        glyphColours.Add("lightning", new Color(1f, 247 / 255f, 103 / 255f));
        glyphColours.Add("arcanopulse", new Color(214 / 255f, 135 / 255f, 1f));
        glyphColours.Add("icespikes", new Color(127 / 255f, 126 / 255f, 253 / 255f));
        glyphColours.Add("icespray", new Color(127 / 255f, 126 / 255f, 253 / 255f));
        glyphColours.Add("royalfire", new Color(143 / 255f, 111 / 255f, 1f));
        glyphColours.Add("magicmissile", new Color(143 / 255f, 111 / 255f, 1f));
        glyphColours.Add("hammer", new Color(1f, 186 / 255f, 60 / 255f));
        glyphColours.Add("earthwall", new Color(165 / 255f, 145 / 255f, 0f));
        glyphColours.Add("default", new Color(191 / 255f, 110 / 255f, 54 / 255f, 64 / 255f));
    }
Example #2
0
    void Start()
    {
        glyphInput = GetComponent <GlyphDrawInput>();
        glyphInput.OnGlyphCast.AddListener(this.OnGlyphCast);

        if (glyphInput.OnStrokeDraw != this.OnStrokeDraw)
        {
            glyphInput.OnStrokeDraw += this.OnStrokeDraw;
        }
        if (glyphInput.OnPointDraw != this.OnPointDraw)
        {
            glyphInput.OnPointDraw += this.OnPointDraw;
        }

        //StartCoroutine(CleanScreen());
    }