Added tree particles, added particle rotation
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -5645,55 +5645,6 @@ RectTransform:
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &322679540
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 322679541}
|
||||
- component: {fileID: 322679542}
|
||||
m_Layer: 5
|
||||
m_Name: TooltipHandler
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &322679541
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 322679540}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1.8, y: 1.8, z: 1.8}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 533.3334, y: 300}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &322679542
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 322679540}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: ff63195da43e3a145abba1304336b467, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
tooltip: {fileID: 426763426}
|
||||
--- !u!1 &325564842
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -7799,82 +7750,6 @@ CanvasRenderer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 426653582}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &426763426
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 426763427}
|
||||
- component: {fileID: 426763429}
|
||||
- component: {fileID: 426763430}
|
||||
m_Layer: 5
|
||||
m_Name: pnlTooltip
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &426763427
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 426763426}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 2111801030}
|
||||
m_Father: {fileID: 1456932137}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0.25, y: 0.25}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &426763429
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 426763426}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &426763430
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 426763426}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.27058825, g: 0.4117647, b: 0.5647059, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1 &435421167
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -11937,7 +11812,6 @@ MonoBehaviour:
|
||||
playerHUD: {fileID: 1601343527}
|
||||
questlog: {fileID: 1568120506}
|
||||
introduction: {fileID: 2038188361}
|
||||
tooltip: {fileID: 426763426}
|
||||
tutorial: {fileID: 718596641}
|
||||
inventory: {fileID: 1726505615}
|
||||
waterLayer: {fileID: 395851979}
|
||||
@@ -27967,7 +27841,6 @@ RectTransform:
|
||||
- {fileID: 583695243}
|
||||
- {fileID: 1568120507}
|
||||
- {fileID: 2038188362}
|
||||
- {fileID: 426763427}
|
||||
- {fileID: 718596642}
|
||||
- {fileID: 1726505616}
|
||||
- {fileID: 1849127266}
|
||||
@@ -37643,7 +37516,7 @@ MonoBehaviour:
|
||||
m_HandleRect: {fileID: 296355392}
|
||||
m_Direction: 2
|
||||
m_Value: 0
|
||||
m_Size: 0.3002915
|
||||
m_Size: 1
|
||||
m_NumberOfSteps: 0
|
||||
m_OnValueChanged:
|
||||
m_PersistentCalls:
|
||||
@@ -39678,126 +39551,6 @@ MonoBehaviour:
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1 &2111801029
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2111801030}
|
||||
- component: {fileID: 2111801032}
|
||||
- component: {fileID: 2111801031}
|
||||
- component: {fileID: 2111801033}
|
||||
m_Layer: 5
|
||||
m_Name: txtTooltip
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &2111801030
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2111801029}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 426763427}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.1, y: 0.1}
|
||||
m_AnchorMax: {x: 0.9, y: 0.9}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &2111801031
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2111801029}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.1764706, g: 0.84705883, b: 0.5058824, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_FontData:
|
||||
m_Font: {fileID: 12800000, guid: 2b8c3fce9287a0e499b95c5a3fb17529, type: 3}
|
||||
m_FontSize: 14
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 10
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: New Text
|
||||
--- !u!222 &2111801032
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2111801029}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &2111801033
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2111801029}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 56eb0353ae6e5124bb35b17aff880f16, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_StringReference:
|
||||
m_TableReference:
|
||||
m_TableCollectionName: GUID:493a625c00a76ca27985d7f7e8d2cb79
|
||||
m_TableEntryReference:
|
||||
m_KeyId: 0
|
||||
m_Key:
|
||||
m_FallbackState: 0
|
||||
m_WaitForCompletion: 0
|
||||
m_LocalVariables: []
|
||||
m_FormatArguments: []
|
||||
m_UpdateString:
|
||||
m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 2111801031}
|
||||
m_TargetAssemblyTypeName: UnityEngine.UI.Text, UnityEngine.UI
|
||||
m_MethodName: set_text
|
||||
m_Mode: 0
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
m_ObjectArgumentAssemblyTypeName:
|
||||
m_IntArgument: 0
|
||||
m_FloatArgument: 0
|
||||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 1
|
||||
references:
|
||||
version: 2
|
||||
RefIds: []
|
||||
--- !u!1 &2128594550
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -40201,6 +39954,5 @@ SceneRoots:
|
||||
- {fileID: 667353831}
|
||||
- {fileID: 1706844941}
|
||||
- {fileID: 659994603}
|
||||
- {fileID: 322679541}
|
||||
- {fileID: 1211906493}
|
||||
- {fileID: 195034455}
|
||||
|
||||
@@ -14,7 +14,6 @@ public class Controls : MonoBehaviour
|
||||
GameObject worldGen;
|
||||
GameObject playerCam;
|
||||
UIHandler uihandler;
|
||||
GameObject currentHouse;
|
||||
Vector3 input;
|
||||
Vector2 view;
|
||||
PlayerInput playerInput;
|
||||
@@ -37,36 +36,44 @@ public class Controls : MonoBehaviour
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
if(playerInput.currentControlScheme == "Controller"){
|
||||
if(Cursor.lockState != CursorLockMode.Locked){
|
||||
if (playerInput.currentControlScheme == "Controller")
|
||||
{
|
||||
if (Cursor.lockState != CursorLockMode.Locked)
|
||||
{
|
||||
Cursor.lockState = CursorLockMode.Locked;
|
||||
}
|
||||
GameObject.Find("txtInteract").GetComponent<Text>().text = GameObject.Find("txtInteract").GetComponent<Text>().text.Replace("[E]", "[ButtonEast]");
|
||||
GameObject.Find("txtInteraction_Tutorial").GetComponent<Text>().text = GameObject.Find("txtInteraction_Tutorial").GetComponent<Text>().text.Replace("[E]", "[ButtonEast]");
|
||||
GameObject.Find("txtTutorialGoal").GetComponent<Text>().text = GameObject.Find("txtTutorialGoal").GetComponent<Text>().text.Replace("[ESC]", "[Start]");
|
||||
}
|
||||
else{
|
||||
if(uihandler.canPlayerRotate()){
|
||||
else
|
||||
{
|
||||
if (uihandler.canPlayerRotate())
|
||||
{
|
||||
Cursor.lockState = CursorLockMode.Locked;
|
||||
}
|
||||
else{
|
||||
else
|
||||
{
|
||||
Cursor.lockState = CursorLockMode.Confined;
|
||||
}
|
||||
GameObject.Find("txtInteract").GetComponent<Text>().text = GameObject.Find("txtInteract").GetComponent<Text>().text.Replace("[ButtonEast]", "[E]");
|
||||
GameObject.Find("txtInteraction_Tutorial").GetComponent<Text>().text = GameObject.Find("txtInteraction_Tutorial").GetComponent<Text>().text.Replace("[E]", "[ButtonEast]");
|
||||
GameObject.Find("txtTutorialGoal").GetComponent<Text>().text = GameObject.Find("txtTutorialGoal").GetComponent<Text>().text.Replace("[Start]", "[ESC]");
|
||||
}
|
||||
if(uihandler.state == UIState.GAME && playerInput.currentActionMap.name != "MainGame"){
|
||||
if (uihandler.state == UIState.GAME && playerInput.currentActionMap.name != "MainGame")
|
||||
{
|
||||
playerInput.SwitchCurrentActionMap("MainGame");
|
||||
}
|
||||
if(uihandler.state != UIState.GAME && playerInput.currentActionMap.name != "Menu"){
|
||||
if (uihandler.state != UIState.GAME && playerInput.currentActionMap.name != "Menu")
|
||||
{
|
||||
playerInput.SwitchCurrentActionMap("Menu");
|
||||
}
|
||||
if (!player.GetComponent<PlayerGameObject>().takeDamage(0))
|
||||
{
|
||||
if (!uihandler.isPlayerInFight())
|
||||
{
|
||||
if (uihandler.canPlayerRotate()){
|
||||
if (uihandler.canPlayerRotate())
|
||||
{
|
||||
playerCam.GetComponent<PlayerCamera>().lookAround(view, playerInput.currentControlScheme == "Controller");
|
||||
}
|
||||
if (uihandler.canPlayerMove())
|
||||
@@ -77,8 +84,10 @@ public class Controls : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
public void FixedUpdate(){
|
||||
if(direction != MoveDirection.None){
|
||||
public void FixedUpdate()
|
||||
{
|
||||
if (direction != MoveDirection.None)
|
||||
{
|
||||
AxisEventData data = new AxisEventData(EventSystem.current);
|
||||
data.moveDir = direction;
|
||||
data.selectedObject = EventSystem.current.currentSelectedGameObject;
|
||||
@@ -86,31 +95,41 @@ public class Controls : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
public void OnLooking(InputValue value){
|
||||
public void OnLooking(InputValue value)
|
||||
{
|
||||
view = value.Get<Vector2>();
|
||||
}
|
||||
|
||||
public void OnMovement(InputValue value){
|
||||
try{
|
||||
public void OnMovement(InputValue value)
|
||||
{
|
||||
try
|
||||
{
|
||||
input = value.Get<Vector3>();
|
||||
}catch{
|
||||
if(value.Get<Vector2>().x < 0){
|
||||
}
|
||||
catch
|
||||
{
|
||||
if (value.Get<Vector2>().x < 0)
|
||||
{
|
||||
direction = MoveDirection.Left;
|
||||
}
|
||||
else if(value.Get<Vector2>().x > 0){
|
||||
else if (value.Get<Vector2>().x > 0)
|
||||
{
|
||||
direction = MoveDirection.Right;
|
||||
}
|
||||
else if(value.Get<Vector2>().y < 0){
|
||||
else if (value.Get<Vector2>().y < 0)
|
||||
{
|
||||
direction = MoveDirection.Down;
|
||||
}
|
||||
else if(value.Get<Vector2>().y > 0){
|
||||
else if (value.Get<Vector2>().y > 0)
|
||||
{
|
||||
direction = MoveDirection.Up;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void OnInteraction(){
|
||||
public void OnInteraction()
|
||||
{
|
||||
if (uihandler.canPlayerMove())
|
||||
{
|
||||
GameObject target = playerCam.GetComponent<PlayerCamera>().interactWithObject();
|
||||
@@ -122,8 +141,9 @@ public class Controls : MonoBehaviour
|
||||
fight.GetComponent<Fight>().startFight(worldGen.GetComponent<WorldGenerator>().getCurrentTile(), target, player);
|
||||
break;
|
||||
case "Tree":
|
||||
playParticle(target);
|
||||
GameObject.Find("Inventory").GetComponent<Inventory>().addItem(new Item("Wood"));
|
||||
Destroy(target);
|
||||
//Destroy(target);
|
||||
break;
|
||||
case "Stone":
|
||||
GameObject.Find("Inventory").GetComponent<Inventory>().addItem(new Item("Rock"));
|
||||
@@ -139,16 +159,20 @@ public class Controls : MonoBehaviour
|
||||
target.GetComponent<Chest>().interact();
|
||||
break;
|
||||
case "Ore":
|
||||
if(target.name.ToLower().Contains("iron")){
|
||||
if (target.name.ToLower().Contains("iron"))
|
||||
{
|
||||
GameObject.Find("Inventory").GetComponent<Inventory>().addItem(new Item("Iron ore"));
|
||||
}
|
||||
else if(target.name.ToLower().Contains("gold")){
|
||||
else if (target.name.ToLower().Contains("gold"))
|
||||
{
|
||||
GameObject.Find("Inventory").GetComponent<Inventory>().addItem(new Item("Gold ore"));
|
||||
}
|
||||
else if(target.name.ToLower().Contains("copper")){
|
||||
else if (target.name.ToLower().Contains("copper"))
|
||||
{
|
||||
GameObject.Find("Inventory").GetComponent<Inventory>().addItem(new Item("Copper ore"));
|
||||
}
|
||||
else if(target.name.ToLower().Contains("tin")){
|
||||
else if (target.name.ToLower().Contains("tin"))
|
||||
{
|
||||
GameObject.Find("Inventory").GetComponent<Inventory>().addItem(new Item("Tin ore"));
|
||||
}
|
||||
Destroy(target);
|
||||
@@ -158,50 +182,76 @@ public class Controls : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
public void OnInventory(){
|
||||
public void playParticle(GameObject target)
|
||||
{
|
||||
Vector3 playerPos = player.transform.position;
|
||||
playerPos.y = target.transform.position.y;
|
||||
Quaternion newRotation = Quaternion.LookRotation(playerPos - target.transform.position, target.transform.TransformDirection(Vector3.up));
|
||||
ParticleSystem particleSystem = target.GetComponent<ParticleSystem>();
|
||||
ParticleSystem.ShapeModule shape = particleSystem.shape;
|
||||
shape.rotation = newRotation.eulerAngles;
|
||||
particleSystem.Play();
|
||||
}
|
||||
|
||||
public void OnInventory()
|
||||
{
|
||||
uihandler.switchInventory();
|
||||
}
|
||||
|
||||
public void OnQuestlog(){
|
||||
public void OnQuestlog()
|
||||
{
|
||||
uihandler.switchQuestLog();
|
||||
}
|
||||
|
||||
public void OnPause(){
|
||||
public void OnPause()
|
||||
{
|
||||
uihandler.switchPauseMenu();
|
||||
}
|
||||
|
||||
public void OnSkillOne(){
|
||||
if(uihandler.isPlayerInFight()){
|
||||
public void OnSkillOne()
|
||||
{
|
||||
if (uihandler.isPlayerInFight())
|
||||
{
|
||||
fight.GetComponent<Fight>().playerAction(1);
|
||||
}
|
||||
}
|
||||
|
||||
public void OnSkillTwo(){
|
||||
if(uihandler.isPlayerInFight()){
|
||||
public void OnSkillTwo()
|
||||
{
|
||||
if (uihandler.isPlayerInFight())
|
||||
{
|
||||
fight.GetComponent<Fight>().playerAction(2);
|
||||
}
|
||||
}
|
||||
|
||||
public void OnSkillThree(){
|
||||
if(uihandler.isPlayerInFight()){
|
||||
public void OnSkillThree()
|
||||
{
|
||||
if (uihandler.isPlayerInFight())
|
||||
{
|
||||
fight.GetComponent<Fight>().playerAction(3);
|
||||
}
|
||||
}
|
||||
|
||||
public void OnSkillFour(){
|
||||
if(uihandler.isPlayerInFight()){
|
||||
public void OnSkillFour()
|
||||
{
|
||||
if (uihandler.isPlayerInFight())
|
||||
{
|
||||
fight.GetComponent<Fight>().playerAction(4);
|
||||
}
|
||||
}
|
||||
|
||||
public void OnSkillFive(){
|
||||
if(uihandler.isPlayerInFight()){
|
||||
public void OnSkillFive()
|
||||
{
|
||||
if (uihandler.isPlayerInFight())
|
||||
{
|
||||
fight.GetComponent<Fight>().playerAction(5);
|
||||
}
|
||||
}
|
||||
|
||||
public void OnSkillSix(){
|
||||
if(uihandler.isPlayerInFight()){
|
||||
public void OnSkillSix()
|
||||
{
|
||||
if (uihandler.isPlayerInFight())
|
||||
{
|
||||
fight.GetComponent<Fight>().playerAction(6);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user