public override void initComponents() { base.initComponents(); mAvatar = addComponent <CharacterComponentModel>(true); mStateMachine = addComponent <CharacterStateMachine>(true); mDecisionTree = addComponent <CharacterDecisionTree>(); }
//-------------------------------------------------------------------------------------------------------------- protected override void initComponents() { base.initComponents(); mAvatar = addComponent(Typeof <CharacterComponentModel>(), true) as CharacterComponentModel; mStateMachine = addComponent(Typeof <CharacterStateMachine>(), true) as CharacterStateMachine; mDecisionTree = addComponent(Typeof <CharacterDecisionTree>()) as CharacterDecisionTree; }
public override void resetProperty() { base.resetProperty(); mBaseData = null; mAvatar = null; mRigidBody = null; mStateMachine = null; mDecisionTree = null; mGUID = 0; mAnimationLenghtList.Clear(); }
public override void resetProperty() { base.resetProperty(); mBaseData = null; mAvatar = null; mRigidBody = null; mStateMachine = null; mDecisionTree = null; mGUID = 0; mAnimationLenghtList.Clear(); mCharacterType = null; mCharacterLoadedCallback = null; mModelPath = null; mAnimationControllerPath = null; mUserData = null; mModelTag = 0; // mModelLoadCallback不重置 // mModelLoadCallback = null; }