Exemplo n.º 1
0
    private void Awake()
    {
        //加载三大管理器
        this._BellyPointManager   = gameObject.GetComponent <BellyPointManager>();
        this._MoodPointManager    = gameObject.GetComponent <MoodPointManager>();
        this._FatiguePointManager = gameObject.GetComponent <FatiguePointManager>();

        //加载视频管理器
        //_MovieManager = GameObject.Find("MovieCamera").GetComponent<PlayClipManager>();

        //加载UI管理器
        _UIManager = GameObject.Find("Prograss_Panel").GetComponent <UIManager>();

        //管理自动事件处理

        playerDataUtils = PlayerDataUtils.getInstance();

        playerDataUtils.test();
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        this.BellyManager = gameObject.GetComponent <BellyPointManager>();

        this.AddBellyListener();//订阅饱食管理器模块的心情变换事件
    }