// Use this for initialization void Start() { _tileimage = GetComponent <Image>(); _borderimage = BorderObject.GetComponent <Image>(); _uimx = FindObjectOfType <UiManager>(); _tsm = new TileStateMachine(this); OnClear(); LoadPieceImage(PieceObject, _tilemodel.PlayerName, _tilemodel.PieceName); LoadPieceImage(PreviewObject, _tilemodel.PlayerName, _tilemodel.PreviewPiece); }
public override void Handle(TileStateMachine context, int tileIndex) { context.State = new MidellRight(); context.transform.Rotate(new Vector3(0, 0, 90)); }
public abstract void Handle(TileStateMachine context, int tileIndex);
public override void Handle(TileStateMachine context, int tileIndex) { context.State = new TopRight(); }
public override void Handle(TileStateMachine context, int tileIndex) { context.State = new BottomToTLcorner(); }
public override void Handle(TileStateMachine context, int tileIndex) { context.State = new TopToBRcorner(); }
public override void Handle(TileStateMachine context, int tileIndex) { context.State = new MidelVertical(); }
public override void Handle(TileStateMachine context, int tileIndex) { context.State = new SingleLeft(); }
public override void Handle(TileStateMachine context, int tileIndex) { context.transform.Rotate(Vector3.left); context.State = new SingleBottom(); }