public ObjectField GetRandomDropObject() { //random object var newDropObject = ObjectField.GetRandomObject(); //rotate random int rotateCount = Random.Range(0, 4); for (int i = 0; i < rotateCount; i++) { newDropObject = newDropObject.RotateRight(); } return(newDropObject); }
public void SetRandomDropObject() { SetDropObject(ObjectField.GetRandomObject()); }