Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 736 Bytes

File metadata and controls

9 lines (7 loc) · 736 Bytes

Unity Random Four Operation Generator

Views

About

This code generates random operation and 3 wrong options suitable to operation based on the difficulty and game mode you give

Usage

  • OperationManager.GetNewOperation(25, OperationManager.Mode.Addition) ----- Generates addition operation involving numbers from 1 to 25 etc. 16 + 25 = ?

  • OperationManager.GetNewOperation(10, OperationManager.Mode.Multiplication, OperationManager.Mode.Division) ----- Generates division or multiplication operation involving numbers from 1 to 10 etc. 9 ÷ 3 = ?,10 x 8 = ?