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; } }
public void SetParent(Transform parent, CellGemAnimType movementType) { transform.SetParent(parent); Animate(movementType); }
public void Init(Cell cell, Dimensions boardDim, CellGemAnimType movementType) { this.cell = cell; transform.localPosition = new Vector3(0, boardDim.height, 0); Animate(movementType); }