body.Sleep(); // No problems
body.Awake(); // Throws a protection error
Despite calling body.Awake() in the same place as body.Sleep(), the compiler throws this error:
To test, I've tried calling storing my body objects in an array outside of core code to ensure the protection level is proper but it doesn't matter. It seems that calling body.Awake() from almost anywhere causes problems. ThanksAssets/scripts/controller.js(194,22): BCE0120: 'ChipmunkBody.Awake()' is inaccessible due to its protection level.
Ryan