示例#1
0
        public spell_test(AsteriskHex parent) : base(parent)
        {
            List <Symbol> list = new List <Symbol>();
            Symbol        s;

            s.img   = Resources.Load <Sprite>("smallhex");
            s.color = Color.red;
            s.pos   = 0;
            s.value = 1;
            list.Add(s);
            s.color = new Color(1, .8f, 0);
            s.pos   = 1;
            s.value = 2;
            list.Add(s);
            s.color = Color.yellow;
            s.pos   = 2;
            s.value = 3;
            list.Add(s);
            s.color = Color.green;
            s.pos   = 3;
            s.value = 4;
            list.Add(s);
            s.color = Color.cyan;
            s.pos   = 4;
            s.value = 5;
            list.Add(s);
            s.color = new Color(.8f, 0, 1);
            s.pos   = 5;
            s.value = 6;
            list.Add(s);
            parent.addSymbol(list);
        }
示例#2
0
    public Spell_Root(AsteriskHex parent) : base(parent)
    {
        List <Symbol> list = new List <Symbol>();

        list.Add(new Symbol(Resources.Load <Sprite>("smallhex"), Color.white, 0, 1));
        list.Add(new Symbol(Resources.Load <Sprite>("smallhex"), Color.red, 1, 2));
        list.Add(new Symbol(Resources.Load <Sprite>("smallhex"), Color.blue, 2, 3));
        list.Add(new Symbol(Resources.Load <Sprite>("smallhex"), Color.magenta, 3, 4));
        list.Add(new Symbol(Resources.Load <Sprite>("smallhex"), Color.yellow, 4, 5));
        list.Add(new Symbol(Resources.Load <Sprite>("smallhex"), Color.cyan, 5, 6));
        parent.addSymbol(list);
    }
示例#3
0
    public Spell_FireRoot(AsteriskHex parent) : base(parent)
    {
        List <Symbol> list = new List <Symbol>();

        list.Add(new Symbol(Resources.Load <Sprite>("smallhex"), Color.white, 0, 0));
        list.Add(new Symbol(Resources.Load <Sprite>("smallhex"), Color.red, 1, 1));
        list.Add(new Symbol(Resources.Load <Sprite>("smallhex"), Color.magenta, 3, 3));
        list.Add(new Symbol(Resources.Load <Sprite>("smallhex"), Color.cyan, 5, 5));
        list.Add(new Symbol(Resources.Load <Sprite>("smallcircle"), Color.white, 2, 6));
        list.Add(new Symbol(Resources.Load <Sprite>("smallcircle"), Color.white, 4, 6));

        parent.addSymbol(list);
    }
示例#4
0
    public Spell_Fire(AsteriskHex parent) : base(parent)
    {
        List <Symbol> list = new List <Symbol>();

        list.Add(new Symbol(Resources.Load <Sprite>("smallhex"), Color.white, UnityEngine.Random.Range(0, 6), 0));
        parent.addSymbol(list);
        list = new List <Symbol>();
        list.Add(new Symbol(Resources.Load <Sprite>("smallhex"), Color.white, UnityEngine.Random.Range(0, 6), 0));
        parent.addSymbol(list);
        list = new List <Symbol>();
        list.Add(new Symbol(Resources.Load <Sprite>("smallhex"), Color.white, UnityEngine.Random.Range(0, 6), 0));
        parent.addSymbol(list);
        list = new List <Symbol>();
        list.Add(new Symbol(Resources.Load <Sprite>("smallhex"), Color.white, UnityEngine.Random.Range(0, 6), 0));
        parent.addSymbol(list);
    }
示例#5
0
 public Spell(AsteriskHex parent)
 {
     this.parent = parent;
 }