Beispiel #1
0
        // PRIVATE


        /// <summary>
        /// _dos the type of the set.
        /// </summary>
        private void _doSetType()
        {
            //Debug.Log ("_inUse_scriptableobject: " + _inUse_scriptableobject);
            if (_inUseFromAssets_scriptableobject == null)
            {
                _scriptableTableItemType = ManagerCandidateType.MONOSCRIPT;

                /*
                 * bool isAUMOMCompatibleManagerMonoScript_boolean = UMOMEditorWindow.IsCompatibleManagerMonoScript(_monoScript);
                 *
                 * if (isAUMOMCompatibleManagerMonoScript_boolean) {
                 *      _scriptableTableItemType = ManagerCandidateType.SCRIPTABLE_UNUSED;
                 * } else {
                 *      throw new UnityException();
                 *
                 *      //_scriptableTableItemType = ManagerCandidateType.MONOSCRIPT;
                 * }
                 */
            }
            else
            {
                //UMOM.Instance.doDebugLogManagers();
                bool hasManager_boolean = _hasManagerAlready(_monoScript.GetClass());
                //
                if (hasManager_boolean)
                {
                    //Debug.Log ("	hasManager_boolean yes: " + _monoScript.name);
                }
                if (hasManager_boolean)
                {
                    _scriptableTableItemType = ManagerCandidateType.SCRIPTABLE_USED;
                }
                else
                {
                    _scriptableTableItemType = ManagerCandidateType.SCRIPTABLE_UNUSED;
                }
            }
        }
        // PRIVATE
        /// <summary>
        /// _dos the type of the set.
        /// </summary>
        private void _doSetType()
        {
            //Debug.Log ("_inUse_scriptableobject: " + _inUse_scriptableobject);
            if (_inUseFromAssets_scriptableobject == null) {

                _scriptableTableItemType = ManagerCandidateType.MONOSCRIPT;
                /*
                bool isAUMOMCompatibleManagerMonoScript_boolean = UMOMEditorWindow.IsCompatibleManagerMonoScript(_monoScript);

                if (isAUMOMCompatibleManagerMonoScript_boolean) {
                    _scriptableTableItemType = ManagerCandidateType.SCRIPTABLE_UNUSED;
                } else {
                    throw new UnityException();

                    //_scriptableTableItemType = ManagerCandidateType.MONOSCRIPT;
                }
                */

            } else {

                //UMOM.Instance.doDebugLogManagers();
                bool hasManager_boolean = _hasManagerAlready(_monoScript.GetClass() );
                //
                if (hasManager_boolean) {

                    //Debug.Log ("	hasManager_boolean yes: " + _monoScript.name);
                }
                if (hasManager_boolean) {
                    _scriptableTableItemType = ManagerCandidateType.SCRIPTABLE_USED;
                } else {
                    _scriptableTableItemType = ManagerCandidateType.SCRIPTABLE_UNUSED;
                }

            }
        }