コード例 #1
0
    public void Animate(CellGemAnimType movementType)
    {
        switch (movementType)
        {
        case CellGemAnimType.Destroy:
            Destroy();
            break;

        case CellGemAnimType.Drop:
            Drop();
            break;

        case CellGemAnimType.Punch:
            Punch();
            break;

        case CellGemAnimType.SimpleMove:
            SimpleMove();
            break;
        }
    }
コード例 #2
0
 public void SetParent(Transform parent, CellGemAnimType movementType)
 {
     transform.SetParent(parent);
     Animate(movementType);
 }
コード例 #3
0
 public void Init(Cell cell, Dimensions boardDim, CellGemAnimType movementType)
 {
     this.cell = cell;
     transform.localPosition = new Vector3(0, boardDim.height, 0);
     Animate(movementType);
 }