public override void Reset() { ID = MalbersTools.GetInstance <StateID>("Jump"); Input = "Jump"; SleepFromState = new List <StateID>() { MalbersTools.GetInstance <StateID>("Fall"), MalbersTools.GetInstance <StateID>("Fly") }; SleepFromMode = new List <ModeID>() { MalbersTools.GetInstance <ModeID>("Action"), MalbersTools.GetInstance <ModeID>("Attack1") }; General = new AnimalModifier() { RootMotion = false, Grounded = false, Sprint = false, OrientToGround = false, CustomRotation = false, IgnoreLowerStates = true, //IMPORTANT! Persistent = false, AdditivePosition = true, Colliders = true, Gravity = true, modify = (modifier)(-1), }; ExitFrame = false; }
/// <summary>This is Executed when the Asset is created for the first time </summary> private void Reset() { ID = MTools.GetInstance <StateID>("Fall"); General = new AnimalModifier() { RootMotion = false, AdditivePosition = true, AdditiveRotation = true, Grounded = false, Sprint = false, OrientToGround = false, Gravity = true, CustomRotation = false, modify = (modifier)(-1), }; LowerBlendDistance = 0.1f; FallRayForward = 0.1f; fallRayMultiplier = 1f; FallSpeed.name = "FallSpeed"; ExitFrame = false; //IMPORTANT }
public override void Reset() { ID = MalbersTools.GetInstance <StateID>("Jump"); Input = "Jump"; General = new AnimalModifier() { RootMotion = true, Grounded = false, Sprint = false, OrientToGround = false, CustomRotation = false, IgnoreLowerStates = true, //IMPORTANT! Persistent = false, AdditivePosition = true, //AdditiveRotation = true, Colliders = true, Gravity = false, modify = (modifier)(-1), }; jumpProfiles = new List <JumpProfile>() { new JumpProfile() { name = "Jump", stepHeight = 0.1f, fallingTime = 0.7f, fallRay = 2, /* ForwardMultiplier = 1,*/ HeightMultiplier = 1, JumpLandDistance = 1.7f } }; }
public override void Reset() { ID = MalbersTools.GetInstance <StateID>("Death"); General = new AnimalModifier() { modify = (modifier)(-1), Persistent = true, LockInput = true, LockMovement = true, Colliders = false, }; }
void Reset() { ID = MTools.GetInstance <StateID>("Death"); General = new AnimalModifier() { modify = (modifier)(-1), Persistent = true, LockInput = true, LockMovement = true, AdditiveRotation = true, }; }
void Reset() { ID = MTools.GetInstance <StateID>("Climb"); General = new AnimalModifier() { RootMotion = true, AdditivePosition = true, AdditiveRotation = true, Grounded = false, Sprint = false, OrientToGround = false, Gravity = false, CustomRotation = true, modify = (modifier)(-1), FreeMovement = false, IgnoreLowerStates = true, }; }
public override void Reset() { ID = MalbersTools.GetInstance <StateID>("Idle"); General = new AnimalModifier() { RootMotion = true, Grounded = true, Sprint = false, OrientToGround = true, CustomRotation = false, Colliders = true, FreeMovement = false, AdditivePosition = true, Gravity = false, modify = (modifier)(-1), }; }
void Reset() { ID = MalbersTools.GetInstance <StateID>("Locomotion"); General = new AnimalModifier() { RootMotion = true, Grounded = true, Sprint = true, OrientToGround = true, CustomRotation = false, IgnoreLowerStates = false, Colliders = true, AdditivePosition = true, //AdditiveRotation = true, Gravity = false, modify = (modifier)(-1), }; }
public override void Reset() { ID = Resources.Load <StateID>("StatesID/Fly"); Input = "Fly"; General = new AnimalModifier() { RootMotion = true, Grounded = false, Sprint = true, OrientToGround = false, CustomRotation = false, IgnoreLowerStates = true, Gravity = false, modify = (modifier)(-1), AdditivePosition = true, Colliders = true, //KeepInertia = true }; }
void Reset() { ID = MalbersTools.GetInstance <StateID>("Jump"); Input = "Jump"; SleepFromState = new List <StateID>() { MalbersTools.GetInstance <StateID>("Fall"), MalbersTools.GetInstance <StateID>("Fly") }; SleepFromMode = new List <ModeID>() { MalbersTools.GetInstance <ModeID>("Action"), MalbersTools.GetInstance <ModeID>("Attack1") }; General = new AnimalModifier() { RootMotion = true, Grounded = false, Sprint = false, OrientToGround = false, CustomRotation = false, IgnoreLowerStates = true, //IMPORTANT! Persistent = false, AdditivePosition = true, //AdditiveRotation = true, // Colliders = true, Gravity = false, modify = (modifier)(-1), }; ExitFrame = false; jumpProfiles = new List <JumpProfile>() { new JumpProfile() { name = "Jump", /*stepHeight = 0.1f,*/ fallingTime = 0.7f, /* fallRay = 2, ForwardMultiplier = 1,*/ HeightMultiplier = 1, JumpLandDistance = 1.7f } }; }
internal void Reset() { ID = MTools.GetInstance <StateID>("Jump"); Input = "Jump"; SleepFromState = new List <StateID>() { MTools.GetInstance <StateID>("Fall"), MTools.GetInstance <StateID>("Fly") }; SleepFromMode = new List <ModeID>() { MTools.GetInstance <ModeID>("Action"), MTools.GetInstance <ModeID>("Attack1") }; General = new AnimalModifier() { RootMotion = false, Grounded = false, Sprint = false, OrientToGround = false, CustomRotation = false, IgnoreLowerStates = true, //IMPORTANT! Persistent = true, AdditivePosition = true, AdditiveRotation = true, Gravity = false, modify = (modifier)(-1), }; ExitFrame = false; profiles = new List <JumpBasicProfile>(1) { new JumpBasicProfile() { Height = new FloatReference(5f), JumpTime = 0.33f, name = "Default", VerticalSpeed = 0 } }; }
public override void Reset() { ID = MalbersTools.GetInstance <StateID>("Swim"); WaterCollider = new Collider[1]; //Set the Array to 1 General = new AnimalModifier() { RootMotion = true, Grounded = false, Sprint = true, OrientToGround = false, CustomRotation = true, IgnoreLowerStates = true, //IMPORTANT AdditivePosition = true, Colliders = true, //AdditiveRotation = true, Gravity = false, modify = (modifier)(-1), //KeepInertia = true }; // SpeedIndex = 0; }