/// <summary>
    /// Called when the script object is loaded
    /// </summary>
    void OnEnable()
    {
        LoadBoneNames();

        // Grab the serialized objects
        mTarget = (MountPoints)target;
        mTargetSO = new SerializedObject(target);

        InstanciatePointList();
        InstanciateItemList();

        // Runs through all other objects and loads the mount point
        LoadOtherMountPoints();
    }
示例#2
0
    /// <summary>
    /// Raised when the object becomes active. Initialization can happen here.
    /// </summary>
    void Awake()
    {
        mMountPoints = GameObject.Find("DefaultMale").GetComponent<MountPoints>();

    }
 /// <summary>
 /// Determine if we're dealing with an actual prefab or an instance
 /// </summary>
 /// <param name="rMountPoints"></param>
 /// <returns></returns>
 private bool IsAddMountPointEnabled(MountPoints rMountPoints)
 {
     PrefabType lType = PrefabUtility.GetPrefabType(rMountPoints);
     return lType != PrefabType.Prefab;
 }