public void SetPhysics(bool fix, PPhysManager man) { this._manager = man; this._fixed = fix; this.LimitWorld(_fixed); this.usePhysics = true; }
public void SetPhysics(bool fix, float scale) { if (_manager == null) { this._manager = new PPhysManager(scale); } else { this._manager.scale = scale; } this._manager.SetEnableGravity(true); this._manager.SetStart(true); this._fixed = fix; this.LimitWorld(_fixed); this.usePhysics = true; }