Example #1
0
    public virtual void Init()
    {
        // cache ref to our stats manager
        DataManager = gameObject.GetComponent<BaseStatsManager>();

        // throw error if object is missing a BaseStatsManager
        if (DataManager == null)
            Debug.LogError ("GameObject is missing a BaseStatsManager: " + gameObject.name);

        // do play init things in this function
        didInit= true;
    }
Example #2
0
    public virtual void Init()
    {
        // cache ref to our stats manager
        DataManager = gameObject.GetComponent <BaseStatsManager>();

        // throw error if object is missing a BaseStatsManager
        if (DataManager == null)
        {
            Debug.LogError("GameObject is missing a BaseStatsManager: " + gameObject.name);
        }

        // do play init things in this function
        didInit = true;
    }
 public Character()
 {
     baseStatsManager = new BaseStatsManager();
 }