예제 #1
0
    private void BeginBeingAdd(MetaBeing mb)
    {
        MetaBeingToAdd = mb;
        GBeingToAdd    = gbattle.DrawBeing(mb);
        panels[mb].SetActive(false);

        gbattle.tileset.TileHoverEnter += OnTileHoverEnter;
        gbattle.tileset.Clicked        += OnTileClicked;
    }
예제 #2
0
    private void Cancel()
    {
        if (MetaBeingToAdd != null)
        {
            Destroy(GBeingToAdd);
            panels[MetaBeingToAdd].SetActive(true);
            MetaBeingToAdd = null;

            gbattle.tileset.TileHoverEnter -= OnTileHoverEnter;
            gbattle.tileset.Clicked        -= OnTileClicked;
        }
    }
예제 #3
0
 public void AddBeing(MetaBeing mb, int x, int y, int team = 0)
 {
     Battle.AddMetaBeing(mb, team, x, y);
 }
예제 #4
0
 public GameObject DrawBeing(MetaBeing mb)
 {
     return(Instantiate(GBeingPrototype));
 }