示例#1
0
    private void Init()
    {
        stats = PlayerParameters.Instance;

        m_PInput = gameObject.AddComponent <PInput>();
        m_PInput.Init(this);

        m_PMove = gameObject.AddComponent <PMove>();
        m_PMove.Init(this);

        m_PCamera = gameObject.AddComponent <PCamera>();
        m_PCamera.Init(this);

        m_PShoot = gameObject.AddComponent <PShoot>();
        m_PShoot.Init(this);

        m_PUI = gameObject.AddComponent <PUI>();
        m_PUI.Init(this);
    }