Beispiel #1
0
        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);
        }
Beispiel #2
0
 public void SetRandomDropObject()
 {
     SetDropObject(ObjectField.GetRandomObject());
 }