mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +00:00
Various fixes
This commit is contained in:
parent
60a29777fa
commit
3fa7a0d4fa
27 changed files with 171 additions and 177 deletions
|
|
@ -3,9 +3,9 @@
|
|||
IMPLEMENT_CO_NETOBJECT_V1(AIPlayerObject);
|
||||
|
||||
AIPlayerObject::AIPlayerObject()
|
||||
: mAIControllerComponent(nullptr)
|
||||
//: mAIControllerComponent(nullptr)
|
||||
{
|
||||
|
||||
mSuperClassName = StringTable->insert("Entity");
|
||||
}
|
||||
AIPlayerObject::~AIPlayerObject()
|
||||
{
|
||||
|
|
@ -21,7 +21,7 @@ bool AIPlayerObject::onAdd()
|
|||
if (!mDirtyGameObject)
|
||||
{
|
||||
//AI Controller
|
||||
mAIControllerComponent = new AIControllerComponent();
|
||||
/*mAIControllerComponent = new AIControllerComponent();
|
||||
if (!mAIControllerComponent->registerObject())
|
||||
{
|
||||
Con::errorf("PlayerObject::onAdd - unable to add mAIControllerComponent!");
|
||||
|
|
@ -30,7 +30,7 @@ bool AIPlayerObject::onAdd()
|
|||
|
||||
mAIControllerComponent->setInternalName("aiControllerComponent");
|
||||
|
||||
addComponent(mAIControllerComponent);
|
||||
addComponent(mAIControllerComponent);*/
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
@ -39,4 +39,4 @@ bool AIPlayerObject::onAdd()
|
|||
void AIPlayerObject::onRemove()
|
||||
{
|
||||
Parent::onRemove();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue