예제 #1
0
 // 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);
 }
예제 #2
0
 public override void Handle(TileStateMachine context, int tileIndex)
 {
     context.State = new MidellRight();
     context.transform.Rotate(new Vector3(0, 0, 90));
 }
예제 #3
0
 public abstract void Handle(TileStateMachine context, int tileIndex);
예제 #4
0
 public override void Handle(TileStateMachine context, int tileIndex)
 {
     context.State = new TopRight();
 }
예제 #5
0
 public override void Handle(TileStateMachine context, int tileIndex)
 {
     context.State = new BottomToTLcorner();
 }
예제 #6
0
 public override void Handle(TileStateMachine context, int tileIndex)
 {
     context.State = new TopToBRcorner();
 }
예제 #7
0
 public override void Handle(TileStateMachine context, int tileIndex)
 {
     context.State = new MidelVertical();
 }
예제 #8
0
 public override void Handle(TileStateMachine context, int tileIndex)
 {
     context.State = new SingleLeft();
 }
예제 #9
0
 public override void Handle(TileStateMachine context, int tileIndex)
 {
     context.transform.Rotate(Vector3.left);
     context.State = new SingleBottom();
 }