public Ball(Globals.ElementType type, GameObject obj) { this.type = type; this.desRow = Mathf.RoundToInt((float)(obj.transform.position.z + 3)); this.desCol = Mathf.RoundToInt((float)(obj.transform.position.x + 3)); this.isLocked = false; this.playerFlag = 0; }
public void getAnElement(Globals.ElementType element) { this.inventory[(int)element] += 1; }