Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Design Pattern: Singleton Programming using the Singleton Design Pattern. You must provide code that uses and demonstrates the Singleton Design Pattern. The goal of this

Design Pattern: Singleton

Programming using the Singleton Design Pattern.

You must provide code that uses and demonstrates the Singleton Design Pattern.

The goal of this project is to show off your understanding of the Design Pattern, NOT getting the project working without it.

Make sure your project has no errors or warnings.

Programming Guidelines:

Create a Scoring/Game information Data Structure that uses the Singleton Design Pattern.The data structure should store at least three types of information if not more:

Score,

Main character health,

Money,

and so on.

Your singleton will need to have public properties so that you can update the information.

You will need a scene in your project to show your singleton works.

The easiest way to do this is to use the UI components of Unity3D.

This project has to work in Unity3D.

Your Singleton class will NOT extend the MonoBehaviour class.

All code will be done in C#.

Programming Hints:

Look up the UI information from the Unity3d's manual section.

We can write information to the console window by using: Debug.Log

Debug.Log("Your message here.");

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions