浏览代码

PigChef jump fixes, particles on jump liftoff

/UI
Ciro Continisio 3 年前
当前提交
1690f35f
共有 8 个文件被更改,包括 62 次插入10 次删除
  1. 2
      UOP1_Project/Assets/Art/Characters/PigChef/Animation/PigChef_Jump.fbx.meta
  2. 2
      UOP1_Project/Assets/Prefabs/Effects/DustParticles/LandingParticle.prefab
  3. 1
      UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/States/JumpAscending.asset
  4. 14
      UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/Actions/PlayLiftoffJumpParticlesAction.asset
  5. 8
      UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/Actions/PlayLiftoffJumpParticlesAction.asset.meta
  6. 26
      UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/PlayLiftoffJumpParticlesActionSO.cs
  7. 11
      UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/PlayLiftoffJumpParticlesActionSO.cs.meta
  8. 8
      UOP1_Project/Assets/ScriptableObjects/StateMachine/Critters/PlantCritter/Actions.meta

2
UOP1_Project/Assets/Art/Characters/PigChef/Animation/PigChef_Jump.fbx.meta


name: jump
takeName: jump
internalID: 0
firstFrame: 1
firstFrame: 7
lastFrame: 40
wrapMode: 0
orientationOffsetY: 0

2
UOP1_Project/Assets/Prefabs/Effects/DustParticles/LandingParticle.prefab


m_PostInfinity: 2
m_RotationOrder: 4
cycleCount: 1
repeatInterval: 1
repeatInterval: 0.05
probability: 1
SizeModule:
enabled: 1

1
UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/States/JumpAscending.asset


m_Name: JumpAscending
m_EditorClassIdentifier:
_actions:
- {fileID: 11400000, guid: 4a37fe6eda176f649b352e4c280ce246, type: 2}
- {fileID: 11400000, guid: 4984500e131bbe34594c4ab0e2c409f3, type: 2}
- {fileID: 11400000, guid: 00abdcc5c2b7e3d4d8855f1a84801fae, type: 2}
- {fileID: 11400000, guid: b099300f484e1344487cc666f75825cc, type: 2}

14
UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/Actions/PlayLiftoffJumpParticlesAction.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 44b3d687684302544b7c240cfbe221eb, type: 3}
m_Name: PlayLiftoffJumpParticlesAction
m_EditorClassIdentifier:

8
UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/Actions/PlayLiftoffJumpParticlesAction.asset.meta


fileFormatVersion: 2
guid: 4a37fe6eda176f649b352e4c280ce246
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

26
UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/PlayLiftoffJumpParticlesActionSO.cs


using UnityEngine;
using UOP1.StateMachine;
using UOP1.StateMachine.ScriptableObjects;
//TODO: Cleanup all the Actions related to jump particles, there are too many specific scripts now
[CreateAssetMenu(fileName = "PlayLiftoffJumpParticlesAction", menuName = "State Machines/Actions/Play Liftoff Jump Particles Action")]
public class PlayLiftoffJumpParticlesActionSO : StateActionSO<PlayLiftoffJumpParticlesAction> { }
public class PlayLiftoffJumpParticlesAction : StateAction
{
//Component references
private DustParticlesController _dustController;
public override void Awake(StateMachine stateMachine)
{
_dustController = stateMachine.GetComponent<DustParticlesController>();
}
public override void OnStateEnter()
{
_dustController.PlayLandParticles(1f); //Same particles as the landing, but with full power
}
public override void OnUpdate() { }
}

11
UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/PlayLiftoffJumpParticlesActionSO.cs.meta


fileFormatVersion: 2
guid: 44b3d687684302544b7c240cfbe221eb
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

8
UOP1_Project/Assets/ScriptableObjects/StateMachine/Critters/PlantCritter/Actions.meta


fileFormatVersion: 2
guid: 052d0796b80cf2c4f8af075d42d298d4
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存