コード例 #1
0
 //Disables the player Camera and unit motor
 //Invokes an the interactive object's onUseEnd
 public void use(Interactive aInteractiveObject)
 {
     if (aInteractiveObject == null)
     {
         return;
     }
     if (m_ObjectInUse != null)
     {
         m_ObjectInUse.onUseEnd(this);
     }
     disableCamera();
     disableUnitMotor();
     m_ObjectInUse = aInteractiveObject;
     m_ObjectInUse.onUse(this);
 }