Пример #1
0
		void Awake() {
			IsoUtils.GetOrCreateComponent<IsoFakeRigidbody>(fakeObject).Init(this);
			_realRigidbody                        = IsoUtils.GetOrCreateComponent<Rigidbody>(fakeObject);
			_realRigidbody.freezeRotation         = true;
			_realRigidbody.isKinematic            = isKinematic;
			_realRigidbody.interpolation          = interpolation;
			_realRigidbody.collisionDetectionMode = collisionDetectionMode;
		}