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; }
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); } }
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); } } }
public void UpdateInk() { ink = grid.GetInk(); }
public void SetInk(IInk nInk) { ink = nInk; }
void Start() { Ink nInk = ComponentLoader.GetInstance().LoadComponent(new ComponentLoader.UnLoadedSpellComponent("SootExtract", SpellComponent.SubSpellComponentType.Ink)) as Ink; this.ink = nInk; }