2020-09-30 13:23:01 +01:00
|
|
|
|
using UnityEngine;
|
2020-10-03 09:40:51 +01:00
|
|
|
|
using Pink.UI;
|
|
|
|
|
using Pink.Items;
|
2020-09-30 13:23:01 +01:00
|
|
|
|
|
|
|
|
|
namespace Pink.Environment
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The main model containing needed data to implement a platformer style
|
|
|
|
|
/// game. This class should only contain data, and methods that operate
|
|
|
|
|
/// on the data. It is initialised with data in the GameController class.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[System.Serializable]
|
|
|
|
|
public class EnvironmentModel
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The virtual camera in the scene.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Cinemachine.CinemachineVirtualCamera virtualCamera;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The main component which controls the player sprite, controlled
|
|
|
|
|
/// by the user.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Pink.Mechanics.PinkController player;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The spawn point in the scene.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Transform spawnPoint;
|
|
|
|
|
|
2020-10-01 18:11:43 +01:00
|
|
|
|
/// <summary>
|
2020-10-03 09:40:51 +01:00
|
|
|
|
/// The HUD controller for the scene.
|
2020-10-01 18:11:43 +01:00
|
|
|
|
/// </summary>
|
2020-10-03 09:40:51 +01:00
|
|
|
|
public HUDController hud;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Item manager for collectibles in the scene.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ItemManager items;
|
2020-09-30 13:23:01 +01:00
|
|
|
|
}
|
2020-10-01 18:11:43 +01:00
|
|
|
|
}
|