浏览代码

Refactory

/main
Eduardo de Albuquerque 4 年前
当前提交
341c6a29
共有 20 个文件被更改,包括 3100 次插入1 次删除
  1. 2
      UOP1_Project/Assets/ErizzoalbuquerqueStuff/PuffofDustParticlesMaterial.mat
  2. 8
      UOP1_Project/Assets/ErizzoalbuquerqueStuff.meta
  3. 56
      UOP1_Project/Assets/ErizzoalbuquerqueStuff/TempPigParticlesController.cs
  4. 11
      UOP1_Project/Assets/ErizzoalbuquerqueStuff/TempPigParticlesController.cs.meta
  5. 1001
      UOP1_Project/Assets/ErizzoalbuquerqueStuff/TestingParticlesScene.unity
  6. 7
      UOP1_Project/Assets/ErizzoalbuquerqueStuff/TestingParticlesScene.unity.meta
  7. 1001
      UOP1_Project/Assets/ErizzoalbuquerqueStuff/WalkingParticle.prefab
  8. 7
      UOP1_Project/Assets/ErizzoalbuquerqueStuff/WalkingParticle.prefab.meta
  9. 1001
      UOP1_Project/Assets/ErizzoalbuquerqueStuff/erizzoalbuquerque_PigChef.prefab
  10. 7
      UOP1_Project/Assets/ErizzoalbuquerqueStuff/erizzoalbuquerque_PigChef.prefab.meta
  11. 0
      /UOP1_Project/Assets/ErizzoalbuquerqueStuff/JumpParticle.prefab.meta
  12. 0
      /UOP1_Project/Assets/ErizzoalbuquerqueStuff/LandingParticle.prefab.meta
  13. 0
      /UOP1_Project/Assets/ErizzoalbuquerqueStuff/PuffofDustParticlesMaterial.mat.meta
  14. 0
      /UOP1_Project/Assets/ErizzoalbuquerqueStuff/PuffofDust.fbx
  15. 0
      /UOP1_Project/Assets/ErizzoalbuquerqueStuff/PuffofDust.fbx.meta
  16. 0
      /UOP1_Project/Assets/ErizzoalbuquerqueStuff/JumpParticle.prefab
  17. 0
      /UOP1_Project/Assets/ErizzoalbuquerqueStuff/LandingParticle.prefab
  18. 0
      /UOP1_Project/Assets/ErizzoalbuquerqueStuff/PuffofDustParticlesMaterial.mat

2
UOP1_Project/Assets/ErizzoalbuquerqueStuff/PuffofDustParticlesMaterial.mat


m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: PuffParticlesMaterial
m_Name: PuffofDustParticlesMaterial
m_Shader: {fileID: -6465566751694194690, guid: bf36778a400a0894b86a1f49c422fa62,
type: 3}
m_ShaderKeywords:

8
UOP1_Project/Assets/ErizzoalbuquerqueStuff.meta


fileFormatVersion: 2
guid: 9bf3836ab08698a4585e6a940e1e3ca4
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

56
UOP1_Project/Assets/ErizzoalbuquerqueStuff/TempPigParticlesController.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UOP1.StateMachine;
/// <summary>
/// A temp script for testing for controlling Pig's particles.
/// This script uses the states of the Pig's State Machine in order to decide the moment to play the each particles system.
/// </summary>
public class TempPigParticlesController : MonoBehaviour
{
[SerializeField] StateMachine playerStateMachine;
[SerializeField] ParticleSystem landParticle;
[SerializeField] ParticleSystem jumpParticle;
[SerializeField] ParticleSystem walkingParticle;
string previousState;
string currentState;
// Start is called before the first frame update
void Start()
{
currentState = playerStateMachine.CurrentState;
previousState = currentState;
}
// Update is called once per frame
void Update()
{
previousState = currentState;
currentState = playerStateMachine.CurrentState;
if (currentState == "JumpAscending" && (previousState == "Walking" || previousState == "Idle"))
{
//print("Jumping!!!");
jumpParticle.Play();
}
else if ((currentState == "Walking" || currentState == "Idle") && previousState == "JumpDescending")
{
//print("Landing!!!");
landParticle.Play();
}
if (currentState == "Walking" && previousState != "Walking")
{
//print("Started Walking!!!");
walkingParticle.Play();
}
else if (currentState != "Walking" && previousState == "Walking")
{
//print("Stopped Walking!!!");
walkingParticle.Stop();
}
}
}

11
UOP1_Project/Assets/ErizzoalbuquerqueStuff/TempPigParticlesController.cs.meta


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

1001
UOP1_Project/Assets/ErizzoalbuquerqueStuff/TestingParticlesScene.unity
文件差异内容过多而无法显示
查看文件

7
UOP1_Project/Assets/ErizzoalbuquerqueStuff/TestingParticlesScene.unity.meta


fileFormatVersion: 2
guid: 6728d7c2628116a4dacb478899045b37
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

1001
UOP1_Project/Assets/ErizzoalbuquerqueStuff/WalkingParticle.prefab
文件差异内容过多而无法显示
查看文件

7
UOP1_Project/Assets/ErizzoalbuquerqueStuff/WalkingParticle.prefab.meta


fileFormatVersion: 2
guid: f8a6e96eef53e5a4686f9a85a72fe73b
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

1001
UOP1_Project/Assets/ErizzoalbuquerqueStuff/erizzoalbuquerque_PigChef.prefab
文件差异内容过多而无法显示
查看文件

7
UOP1_Project/Assets/ErizzoalbuquerqueStuff/erizzoalbuquerque_PigChef.prefab.meta


fileFormatVersion: 2
guid: 4a9ce97c8cb499f4ab4aba855813361d
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

/UOP1_Project/Assets/ThingsEduardoIsCreating/JumpParticle.prefab.meta → /UOP1_Project/Assets/ErizzoalbuquerqueStuff/JumpParticle.prefab.meta

/UOP1_Project/Assets/ThingsEduardoIsCreating/LandingPuffParticle.prefab.meta → /UOP1_Project/Assets/ErizzoalbuquerqueStuff/LandingParticle.prefab.meta

/UOP1_Project/Assets/ThingsEduardoIsCreating/PuffParticlesMaterial.mat.meta → /UOP1_Project/Assets/ErizzoalbuquerqueStuff/PuffofDustParticlesMaterial.mat.meta

/UOP1_Project/Assets/ThingsEduardoIsCreating/puff cloud.fbx → /UOP1_Project/Assets/ErizzoalbuquerqueStuff/PuffofDust.fbx

/UOP1_Project/Assets/ThingsEduardoIsCreating/puff cloud.fbx.meta → /UOP1_Project/Assets/ErizzoalbuquerqueStuff/PuffofDust.fbx.meta

/UOP1_Project/Assets/ThingsEduardoIsCreating/JumpParticle.prefab → /UOP1_Project/Assets/ErizzoalbuquerqueStuff/JumpParticle.prefab

/UOP1_Project/Assets/ThingsEduardoIsCreating/LandingPuffParticle.prefab → /UOP1_Project/Assets/ErizzoalbuquerqueStuff/LandingParticle.prefab

/UOP1_Project/Assets/ThingsEduardoIsCreating/PuffParticlesMaterial.mat → /UOP1_Project/Assets/ErizzoalbuquerqueStuff/PuffofDustParticlesMaterial.mat

正在加载...
取消
保存