Introduced new animations, prefabs, scripts, and textures to implement a win condition in the game. Updated InventoryScript to trigger the win state when the required coin count is reached. Added supporting assets such as win animations, GUI elements, and sound effects.
23 lines
393 B
C#
23 lines
393 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class FaderScript : MonoBehaviour {
|
|
|
|
public GUITexture loadingGUI;
|
|
|
|
void Start () {
|
|
Rect rect = new Rect (-Screen.width * 0.5f, -Screen.height * 0.5f, Screen.width, Screen.height);
|
|
guiTexture.pixelInset = rect;
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
|
|
}
|
|
|
|
void showLoading()
|
|
{
|
|
Instantiate(loadingGUI);
|
|
}
|
|
}
|