public sCell(GameObject cell) { if (cell == null) { type = CellType.Null; return; } pos = new sVector3(cell.transform.position); value = cell.GetComponent<CellValue>().Value; switch (cell.tag) { case "Dragon": type = CellType.Dragon; break; case "Hero": type = CellType.Hero; break; case "Monster": type = CellType.Monster; break; case "Sword": type = CellType.Sword; break; } }
public AngleBasedHandModel() { rotation = new sQuaternion(); position = new sVector3(0, 0, 0); thumb = new AngleBasedThumbModel(); for (int i = 0; i < fingers.Length; i++) { fingers[i] = new AngleBasedFingerModel(); } }
public void SetPosition(Vector3 position) { worldPos = position; }