Skip to content

Commit

Permalink
Fixed lock first weapond in machine
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos2380 committed Oct 3, 2018
1 parent 9646785 commit 8b53c20
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2881,4 +2881,11 @@ AnimationClip:
m_HasGenericRootTransform: 0
m_HasMotionFloatCurves: 0
m_GenerateMotionCurves: 0
m_Events: []
m_Events:
- time: 1.3333334
functionName: updateHUD
data:
objectReferenceParameter: {fileID: 0}
floatParameter: 0
intParameter: 0
messageOptions: 0
66 changes: 65 additions & 1 deletion ShowPT/Assets/Scenes/Game.unity
Original file line number Diff line number Diff line change
Expand Up @@ -47710,6 +47710,22 @@ ParticleSystem:
m_PostInfinity: 2
m_RotationOrder: 4
vectorLabel1_3: W
--- !u!1 &448336370 stripped
GameObject:
m_PrefabParentObject: {fileID: 1168040546144384, guid: 93a6c15518400ae478bba9a29fd1dd68,
type: 2}
m_PrefabInternal: {fileID: 1552626871}
--- !u!114 &448336375
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 448336370}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ae9499bada560f44685a159089fdd5e5, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &449649761
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -58041,6 +58057,22 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
explosionForce: 700
--- !u!1 &617557270 stripped
GameObject:
m_PrefabParentObject: {fileID: 1459550404800550, guid: 93a6c15518400ae478bba9a29fd1dd68,
type: 2}
m_PrefabInternal: {fileID: 1552626871}
--- !u!114 &617557275
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 617557270}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ae9499bada560f44685a159089fdd5e5, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!4 &617665154 stripped
Transform:
m_PrefabParentObject: {fileID: 400084, guid: aeb9298774497194b9592af367d19efc, type: 3}
Expand Down Expand Up @@ -105361,6 +105393,22 @@ Transform:
m_Father: {fileID: 1198274853}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1103495742 stripped
GameObject:
m_PrefabParentObject: {fileID: 1758304154275152, guid: 93a6c15518400ae478bba9a29fd1dd68,
type: 2}
m_PrefabInternal: {fileID: 1552626871}
--- !u!114 &1103495747
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1103495742}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ae9499bada560f44685a159089fdd5e5, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1103782082
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -149994,6 +150042,22 @@ Animator:
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
--- !u!1 &1537344068 stripped
GameObject:
m_PrefabParentObject: {fileID: 1577464265470752, guid: 93a6c15518400ae478bba9a29fd1dd68,
type: 2}
m_PrefabInternal: {fileID: 1552626871}
--- !u!114 &1537344073
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1537344068}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ae9499bada560f44685a159089fdd5e5, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1538630641
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -175655,7 +175719,7 @@ Prefab:
- target: {fileID: 114497096684429664, guid: 020030e7ca02d944eb8625b1fd8c4c5b,
type: 2}
propertyPath: m_Enabled
value: 1
value: 0
objectReference: {fileID: 0}
m_RemovedComponents:
- {fileID: 114587176421123022, guid: 020030e7ca02d944eb8625b1fd8c4c5b, type: 2}
Expand Down
19 changes: 19 additions & 0 deletions ShowPT/Assets/Scripts/UpdateHudMachine.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UpdateHudMachine : MonoBehaviour
{
private ResourceMachineController resourceMachineController;

// Use this for initialization
void Start ()
{
resourceMachineController = transform.GetComponentInChildren<ResourceMachineController>();
}

// Update is called once per frame
public void updateHUD () {
resourceMachineController.updateSelected(0);
}
}
13 changes: 13 additions & 0 deletions ShowPT/Assets/Scripts/UpdateHudMachine.cs.meta

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

0 comments on commit 8b53c20

Please sign in to comment.