コード例 #1
0
	void Awake ()
	{
		_notificationModel = GetComponent<RecommendationNotificationModel>();
		if (null == _notificationModel)
		{
			throw new MissingComponentException(
				"RecommendationNotificationController.Start - can't find RecommendationNotificationModel component in _notificationModel");
		}
	
		SubscribeEvents();
		_notificationModel.State = RecommendationNotificationModel.RecommendationNotificationState.SmallIcon;
	}
コード例 #2
0
    void Awake()
    {
        _notificationModel = GetComponent <RecommendationNotificationModel>();
        if (null == _notificationModel)
        {
            throw new MissingComponentException(
                      "RecommendationNotificationController.Start - can't find RecommendationNotificationModel component in _notificationModel");
        }

        SubscribeEvents();
        _notificationModel.State = RecommendationNotificationModel.RecommendationNotificationState.SmallIcon;
    }