| 198 | } |
| 199 | |
| 200 | void ScriptActorWrapper::AddRef() |
| 201 | { |
| 202 | _refCount++; |
| 203 | |
| 204 | // Increment also the reference counter to the script side, so it isn't accidentally destroyed before the C++ side |
| 205 | if (!_isDead->Get()) { |
| 206 | _obj->AddRef(); |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | void ScriptActorWrapper::Release() |
| 211 | { |