Question: This must be in C#. This assignment is for Unity Game Programming 1. Create vending signs using the Factory Design Pattern. You will need 3
This must be in C#. This assignment is for Unity Game Programming 1.
- Create vending signs using the Factory Design Pattern.
- You will need 3 sign posts (either 3D objects or UI elements in the 3D world)
- Each sign post will contain the words of what they dispense.
- Each sign post will only create one type of gameObject.
- They will be clickable with the mouse.
- You will create a factory that will produce GameObjects.
- The objects will be: Cube, Sphere, and Cylinder
- Each object will be destroyed after 30 seconds.
- Each object will have a random color assigned to it.
- Cube objects will have random size set when created.
- Sphere objects will have a light object inside while the object spins.
- Cylinder objects will have random heights and will shrink in height for 20 seconds.
- When multiple objects are created, they will spawn close to their sign but are not to overlapping each other.
- This project has to work in Unity3D.
- Your Factory classes will NOT extend the MonoBehaviour class.
- All code will be done in C#.
-
Programming Hints:
- The Factory class is the interface between the client who wants the object and the code that creates the object.
- GameObject.CreatePrimitive
- Object.Instantiate
- Object.Destroy
- We can write information to the console window by using: Debug.Log
- Debug.Log("Your message here.");
- This is all the information I have for this assignment I'm sorry I can't provide more information. Again I need this done in C#. Thank you very much.
- You will need 3 sign posts (either 3D objects or UI elements in the 3D world)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
