private void CreateAndInitializeRumbleSource(RumbleAsset rumbleAsset, float radius) { var sourceGameObject = new GameObject("RumbleSource"); rumbleSource = sourceGameObject.AddComponent <RumbleSource>(); rumbleSource.Initialize(rumbleAsset, radius); }
public void TearDown() { Object.Destroy(rumbleSource); rumbleSource = null; }