Graphics Reference
In-Depth Information
public void SetScore(int num)
{
score=num;
}
public int GetHealth()
{
return health;
}
public void AddHealth(int num)
{
health+=num;
}
public void ReduceHealth(int num)
{
health-=num;
}
public void SetHealth(int num)
{
health=num;
}
public bool GetIsFinished()
{
return isFinished;
}
public void SetIsFinished(bool aVal)
{
isFinished=aVal;
}
}
2.2.4.1 Script Breakdown
BaseUserManager.cs contains just variable declarations and functions to get or set those
variables.
2.2.5 BasePlayerManager.cs
The player manager acts like glue among the input manager, the user manager, and the
game-specific player controllers. It is intended to be a central point where managers are
tied to game-specific player scripts.
Below is the BasePlayerManager.cs in full:
public class BasePlayerManager : MonoBehavior
{
public bool didInit;
// the user manager and AI controllers are publically accessible so that
// our individual control scripts can access them easily
public BaseUserManager DataManager;
Search WWH ::




Custom Search