Exemple #1
0
        private void CreateAndInitializeRumbleSource(RumbleAsset rumbleAsset, float radius)
        {
            var sourceGameObject = new GameObject("RumbleSource");

            rumbleSource = sourceGameObject.AddComponent <RumbleSource>();
            rumbleSource.Initialize(rumbleAsset, radius);
        }
Exemple #2
0
 public void TearDown()
 {
     Object.Destroy(rumbleSource);
     rumbleSource = null;
 }