Skip to content

Commit

Permalink
Merge pull request #165 from i2ml/Pichu_Maxens
Browse files Browse the repository at this point in the history
Pichu maxens End
  • Loading branch information
FeaKLeader committed Sep 9, 2021
2 parents c698a1d + 399aed2 commit fd668e8
Show file tree
Hide file tree
Showing 8 changed files with 1,056 additions and 892 deletions.
Binary file added .DS_Store
Binary file not shown.
1,751 changes: 933 additions & 818 deletions Assets/Scenes/MainScene.unity

Large diffs are not rendered by default.

35 changes: 1 addition & 34 deletions Assets/Scripts/ConstraintsScripts/NavigationBaker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ public class NavigationBaker : MonoBehaviour
private void Start()
{
m_surface = GetComponent<NavMeshSurface>();

nbPreset = NavMesh.GetSettingsCount();
}


Expand Down Expand Up @@ -79,38 +77,7 @@ public void ChangeAgent(GameObject _dropDown)
{
int indexID = _dropDown.GetComponent<TMP_Dropdown>().value;
GetComponent<NavMeshSurface>().agentTypeID = NavMesh.GetSettingsByIndex(indexID).agentTypeID;
nbPreset = NavMesh.GetSettingsByIndex(indexID).agentTypeID;
}

public void ProcessBake()
{
int count = NavMesh.GetSettingsCount();
//Debug.Log(count + " " + nbPreset);
if (count == nbPreset)
{
//NavMeshAgent g = new NavMeshAgent().setradi;

//float _r = 0;
//float _h = 0;

////_r = float.Parse(LargeurField.text);
////_h = float.Parse(LargeurField.text);


//Debug.Log(_r + " " + _h);

//g.radius = _r;
//g.height = _h;

//g.name = "yoloAgent";

//GetComponent<NavMeshSurface>().agentTypeID = g.agentTypeID;
//BakeNavMeshSurface();
}
else
{
BakeNavMeshSurface();
}
nbPreset = indexID;
}
}
}
10 changes: 5 additions & 5 deletions Assets/Scripts/UI/UIManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ private void SetInstructionsText()
{
if (GlobalManager.Instance.GetActiveCamera().gameObject == GlobalManager.Instance.cam2DTop)
{
Instance.instructionsText.text = "Déplacez la caméra avec le clic droit. F1 pour changer de vue vers la 3D";
Instance.instructionsText.text = "Déplacez la caméra avec le clic droit. F1 pour changer de vue vers la 3D sur mac fin + F1";
}
else if (GlobalManager.Instance.GetActiveCamera().gameObject == GlobalManager.Instance.cam3D)
{
Instance.instructionsText.text = "Déplacez la caméra avec les fleche et avec le clic molette tournez votre vue. F1 pour changer de vue vers la 2D";
Instance.instructionsText.text = "Déplacez la caméra avec les fleche et avec le clic molette tournez votre vue. F1 pour changer de vue vers la 2D, sur mac fin + F1";
}
else
{
Instance.instructionsText.text = "Déplacez la caméra avec le clic molette ou avec les fleches du clavier. Tournez la caméra avec le clic droit. F1 pour changer de vue.";
Instance.instructionsText.text = "Déplacez la caméra avec le clic molette ou avec les fleches du clavier. Tournez la caméra avec le clic droit. F1 pour changer de vue, sur mac fin + F1.";
}
//Debug.Log(GlobalManager.Instance.GetActiveCamera());
}
Expand Down Expand Up @@ -241,13 +241,13 @@ public void ShowHandicapForm()
public void ShowScreenShotOK(string filename)
{
filenamePath = filename;
screenShotMessage.text = "Capture d'écran effectuée à\n" + filename;
screenShotMessage.text = "Capture d'écran effectuée et enregistrée dans \n" + filename;
StartCoroutine(ShowHideScreenShotMessage(5));
}

public void showScreenShootInExplorer()
{
EditorUtility.RevealInFinder(filenamePath);
//EditorUtility.RevealInFinder(filenamePath);
}

public void ShowMergeRoomsMessage()
Expand Down
23 changes: 15 additions & 8 deletions Assets/UI/arrows_cursor.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 17 additions & 10 deletions Assets/UI/hand_cursor.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

102 changes: 85 additions & 17 deletions ProjectSettings/NavMeshAreas.asset
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ NavMeshProjectSettings:
cost: 1
- name:
cost: 1
m_LastAgentTypeID: 1479372276
m_LastAgentTypeID: 1018083246
m_Settings:
- serializedVersion: 2
agentTypeID: 0
agentRadius: 0.35
agentHeight: 1.8
agentSlope: 40
agentClimb: 0.4
agentRadius: 0.25
agentHeight: 1.25
agentSlope: 10
agentClimb: 0.05
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
Expand All @@ -88,7 +88,39 @@ NavMeshProjectSettings:
debug:
m_Flags: 0
- serializedVersion: 2
agentTypeID: -1372625422
agentTypeID: -334000983
agentRadius: 0.3
agentHeight: 1.25
agentSlope: 10
agentClimb: 0.05
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
debug:
m_Flags: 0
- serializedVersion: 2
agentTypeID: 1479372276
agentRadius: 0.325
agentHeight: 1.25
agentSlope: 10
agentClimb: 0.05
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
debug:
m_Flags: 0
- serializedVersion: 2
agentTypeID: -902729914
agentRadius: 0.35
agentHeight: 1.25
agentSlope: 10
Expand All @@ -104,11 +136,11 @@ NavMeshProjectSettings:
debug:
m_Flags: 0
- serializedVersion: 2
agentTypeID: -334000983
agentRadius: 0.15
agentHeight: 1.2
agentTypeID: 287145453
agentRadius: 0.4
agentHeight: 1.25
agentSlope: 10
agentClimb: 0.025
agentClimb: 0.05
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
Expand All @@ -120,11 +152,43 @@ NavMeshProjectSettings:
debug:
m_Flags: 0
- serializedVersion: 2
agentTypeID: 1479372276
agentTypeID: 658490984
agentRadius: 0.45
agentHeight: 1.25
agentSlope: 10
agentClimb: 0.05
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
debug:
m_Flags: 0
- serializedVersion: 2
agentTypeID: 65107623
agentRadius: 0.5
agentHeight: 1
agentSlope: 45
agentClimb: 0.08
agentHeight: 1.25
agentSlope: 10
agentClimb: 0.05
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
debug:
m_Flags: 0
- serializedVersion: 2
agentTypeID: -749502095
agentRadius: 0.75
agentHeight: 1.25
agentSlope: 10
agentClimb: 0.05
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
Expand All @@ -137,6 +201,10 @@ NavMeshProjectSettings:
m_Flags: 0
m_SettingNames:
- Humanoid
- Fauteuil
- Fauteuil Petit
- AgentPerso
- Fauteuil (L 60 cm)
- Fauteuil (L 65 cm)
- Fauteuil (L 70 cm)
- Fauteuil (L 80 cm)
- Fauteuil (L 90 cm)
- Fauteuil (L 100 cm)
- Fauteuil (L 150 cm)
Binary file added mysetup.exe
Binary file not shown.

0 comments on commit fd668e8

Please sign in to comment.