示例#1
0
 public SpellPixelFinal(IInk ink, Vector2 position)
 {
     if (position == null || ink == null)
     {
         Debug.LogError("Failed To Make Pixel with ink and position " + ink + " " + position);
     }
     m_position = position;
     m_ink      = ink;
 }
示例#2
0
 public void ChangeActive(bool setActive)
 {
     if (!setActive)
     {
         grid.OnGridChanged((Ink)ink, false);
         active = false;
     }
     else
     {
         active = true;
         ink    = grid.GetInk() as Ink;
         grid.OnGridChanged((Ink)ink, true);
     }
 }
示例#3
0
    public NonMonoSpellGrid(int xx, int yy)
    {
        spellPixels = new NonMonoSpellPixel[xx, yy];
        sizeX       = xx;
        sizeY       = yy;
        InkToNumberOfActiveInksOfThatType = new Dictionary <Ink, int>();
        ink = ComponentLoader.GetInstance().LoadComponent(new ComponentLoader.UnLoadedSpellComponent("SootExtract", SpellComponent.SubSpellComponentType.Ink)) as Ink;

        for (int x = 0; x < sizeX; x++)
        {
            for (int y = 0; y < sizeY; y++)
            {
                spellPixels[x, y] = new NonMonoSpellPixel(this);
            }
        }
    }
示例#4
0
 public void UpdateInk()
 {
     ink = grid.GetInk();
 }
示例#5
0
 public void SetInk(IInk nInk)
 {
     ink = nInk;
 }
示例#6
0
    void Start()
    {
        Ink nInk = ComponentLoader.GetInstance().LoadComponent(new ComponentLoader.UnLoadedSpellComponent("SootExtract", SpellComponent.SubSpellComponentType.Ink)) as Ink;

        this.ink = nInk;
    }