private void BeginBeingAdd(MetaBeing mb) { MetaBeingToAdd = mb; GBeingToAdd = gbattle.DrawBeing(mb); panels[mb].SetActive(false); gbattle.tileset.TileHoverEnter += OnTileHoverEnter; gbattle.tileset.Clicked += OnTileClicked; }
private void Cancel() { if (MetaBeingToAdd != null) { Destroy(GBeingToAdd); panels[MetaBeingToAdd].SetActive(true); MetaBeingToAdd = null; gbattle.tileset.TileHoverEnter -= OnTileHoverEnter; gbattle.tileset.Clicked -= OnTileClicked; } }
public void AddBeing(MetaBeing mb, int x, int y, int team = 0) { Battle.AddMetaBeing(mb, team, x, y); }
public GameObject DrawBeing(MetaBeing mb) { return(Instantiate(GBeingPrototype)); }