예제 #1
0
 public void RandomShake(float impact)
 {
     this.m_ShakeIntensityType = ShakeMinionIntensity.Custom;
     this.m_IntensityValue     = impact;
     this.m_ShakeType          = ShakeMinionType.Angle;
     this.m_ShakeType          = ShakeMinionType.RandomDirection;
     this.ShakeMinion();
 }
 public override void Reset()
 {
     this.gameObject           = null;
     this.MinionsToShake       = MinionsToShakeEnum.All;
     this.shakeType            = ShakeMinionType.RandomDirection;
     this.shakeSize            = ShakeMinionIntensity.SmallShake;
     this.customShakeIntensity = 0.1f;
     this.radius = 0f;
 }
 public void MinionShakeEvent(ShakeMinionIntensity shakeIntensity, float customIntensity)
 {
     if (shakeIntensity == ShakeMinionIntensity.LargeShake)
     {
         EventData data = new EventData {
             m_timeStamp = UnityEngine.Time.timeSinceLevelLoad,
             m_eventType = EVENT_TYPE.LargeMinionShake
         };
         this.m_fastEvents.AddLast(data);
     }
 }
예제 #4
0
 public static void ShakeTargetMinion(GameObject shakeTarget, ShakeMinionType shakeType, Vector3 impactPoint, ShakeMinionIntensity intensityType, float intensityValue, float radius, float startDelay)
 {
     object[] objArray1 = new object[] { shakeTarget, shakeType, impactPoint, intensityType, intensityValue, radius, startDelay };
     MonoClass.smethod_18(TritonHs.MainAssemblyPath, "", "MinionShake", "ShakeTargetMinion", objArray1);
 }
예제 #5
0
 public static void ShakeObject(GameObject shakeObject, ShakeMinionType shakeType, Vector3 impactPoint, ShakeMinionIntensity intensityType, float intensityValue, float radius, float startDelay, bool ignoreAnimationPlaying, bool ignoreHeight)
 {
     object[] objArray1 = new object[] { shakeObject, shakeType, impactPoint, intensityType, intensityValue, radius, startDelay, ignoreAnimationPlaying, ignoreHeight };
     MonoClass.smethod_19(TritonHs.MainAssemblyPath, "", "MinionShake", "ShakeObject", new Class272.Enum20[] { Class272.Enum20.Class }, objArray1);
 }
예제 #6
0
 public void MinionShakeEvent(ShakeMinionIntensity shakeIntensity, float customIntensity)
 {
     object[] objArray1 = new object[] { shakeIntensity, customIntensity };
     base.method_8("MinionShakeEvent", objArray1);
 }