void Start() { IsInBattle = true; motionMode = motionModes[Random.Range(0, motionModes.Length)]; switch (motionMode) { case MotionMode.TRACE: gameObject.AddComponent <Tracer>().Begin(); break; case MotionMode.MARBLE: gameObject.AddComponent <Marble>().Begin(); break; case MotionMode.SPRINTER: gameObject.AddComponent <Sprinter>().Begin(); break; case MotionMode.CRUISE_WAVE: gameObject.AddComponent <WaveCruiser>().Begin(); break; case MotionMode.CRUISE_CIRCLE: gameObject.AddComponent <CircleCruiser>().Begin(); break; case MotionMode.CRUISE_MOBIUS: gameObject.AddComponent <MobiusCruiser>().Begin(); break; } if (motionMode == MotionMode.SPRINTER) { fireMode = modeGroup0[Random.Range(0, modeGroup0.Length)]; } else { fireMode = modeGroup1[Random.Range(0, modeGroup1.Length)]; } switch (fireMode) { case FireMode.NORMAL: gameObject.AddComponent <NormalWeapon>().StartWeapon(0.25f, 0.5f); break; case FireMode.RAPID: gameObject.AddComponent <RapidWeapon>().StartWeapon(8, 1f, 0.5f); break; case FireMode.RING: gameObject.AddComponent <RingWeapon>().StartWeapon(8, 2f, 0.5f); break; case FireMode.SIDE: gameObject.AddComponent <SideWeapon>().StartWeapon(0.25f, 0.5f); break; } }
public override void Read(PackFileDeserializer des, BinaryReaderEx br) { base.Read(des, br); m_controlData = new hkbCharacterControllerModifierControlData(); m_controlData.Read(des, br); br.ReadUInt64(); m_initialVelocity = des.ReadVector4(br); m_initialVelocityCoordinates = (InitialVelocityCoordinates)br.ReadSByte(); m_motionMode = (MotionMode)br.ReadSByte(); m_forceDownwardMomentum = br.ReadBoolean(); m_applyGravity = br.ReadBoolean(); m_setInitialVelocity = br.ReadBoolean(); m_isTouchingGround = br.ReadBoolean(); br.ReadUInt64(); br.ReadUInt64(); br.ReadUInt64(); br.ReadUInt64(); br.ReadUInt64(); br.ReadUInt16(); }
public void SetMotionMode(MotionMode mode) { motionMode = mode; }
public ToolPathSegment(Point3D start, Point3D end, MotionMode motionMode) { Start = start; End = end; MotionMode = motionMode; }
public void SetMotionMode(MotionMode motionMode) { this.motionMode = motionMode; }