Ejemplo n.º 1
0
 public override void initComponents()
 {
     base.initComponents();
     mAvatar       = addComponent <CharacterComponentModel>(true);
     mStateMachine = addComponent <CharacterStateMachine>(true);
     mDecisionTree = addComponent <CharacterDecisionTree>();
 }
Ejemplo n.º 2
0
 //--------------------------------------------------------------------------------------------------------------
 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;
 }
Ejemplo n.º 3
0
 public override void resetProperty()
 {
     base.resetProperty();
     mBaseData     = null;
     mAvatar       = null;
     mRigidBody    = null;
     mStateMachine = null;
     mDecisionTree = null;
     mGUID         = 0;
     mAnimationLenghtList.Clear();
 }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
 public override void initComponents()
 {
     base.initComponents();
     mAvatar = addComponent <CharacterComponentModel>("Model", true);
 }