コード例 #1
0
    public override void Awake()
    {
        priority = 2998;
        base.Awake();

        _gameModel     = ServiceLocator.Instance.Model.GetComponent <ModelGame>();
        _objIntModel   = ServiceLocator.Instance.Model.GetComponent <ModelObjectInteraction>();
        _eqptMenuModel = ServiceLocator.Instance.Model.GetComponent <ModelMenuEqpt>();
        _objIntCtrlr   = ServiceLocator.Instance.Controller.GetComponent <ControllerObjectInteraction>();

        _canvas = ServiceLocator.Instance.View.Find("Canvas");

        _p0_MenuParent = _canvas.Find("P0 Menu Parent");
        _p1_MenuParent = _canvas.Find("P1 Menu Parent");

        Debug.Assert(_p0_MenuParent != null);
        Debug.Assert(_p1_MenuParent != null);
    }
コード例 #2
0
    public override void Awake()
    {
        priority = 3000;
        base.Awake();

        _gameModel     = ServiceLocator.Instance.Model.GetComponent <ModelGame>();
        _eqptMenuModel = ServiceLocator.Instance.Model.GetComponent <ModelMenuEqpt>();

        _menuParent_p0 = ServiceLocator.Instance.View.Find("Canvas").Find("P0 Menu Parent");
        _menuParent_p1 = ServiceLocator.Instance.View.Find("Canvas").Find("P1 Menu Parent");

        _title_p0 = _menuParent_p0.Find("P0 Title");
        _title_p1 = _menuParent_p1.Find("P1 Title");

        _option1_p0 = _menuParent_p0.Find("P0 Option 1");
        _option1_p1 = _menuParent_p1.Find("P1 Option 1");

        _cursor_p0 = _menuParent_p0.Find("P0 Cursor");
        _cursor_p1 = _menuParent_p1.Find("P1 Cursor");
    }