Resolve merge conflicts from main menu
This commit is contained in:
@@ -325,11 +325,11 @@ PrefabInstance:
|
|||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 6118034672792182209, guid: e05928a0d673caf999d31b31b994a112, type: 3}
|
- target: {fileID: 6118034672792182209, guid: e05928a0d673caf999d31b31b994a112, type: 3}
|
||||||
propertyPath: swingDistance
|
propertyPath: swingDistance
|
||||||
<<<<<<< HEAD
|
|
||||||
value: 3
|
value: 3
|
||||||
=======
|
objectReference: {fileID: 0}
|
||||||
value: 2
|
- target: {fileID: 6118034672792182209, guid: e05928a0d673caf999d31b31b994a112, type: 3}
|
||||||
>>>>>>> main
|
propertyPath: swingRangeDeg
|
||||||
|
value: 21.98
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 6118034672792182209, guid: e05928a0d673caf999d31b31b994a112, type: 3}
|
- target: {fileID: 6118034672792182209, guid: e05928a0d673caf999d31b31b994a112, type: 3}
|
||||||
propertyPath: distanceIndicator
|
propertyPath: distanceIndicator
|
||||||
|
|||||||
@@ -57,24 +57,14 @@ public class Teo : MonoBehaviour
|
|||||||
Ratbot ratbot = hit.GetComponent<Ratbot>();
|
Ratbot ratbot = hit.GetComponent<Ratbot>();
|
||||||
// If ratbot exists and is within swing range, damage it.
|
// If ratbot exists and is within swing range, damage it.
|
||||||
// Calculate absolute difference between angles of ratbot and cursor
|
// Calculate absolute difference between angles of ratbot and cursor
|
||||||
<<<<<<< HEAD:Assets/C# Scripts/Teo.cs
|
|
||||||
if (ratbot == null || Mathf.Abs(Mathf.Atan2(
|
if (ratbot == null || Mathf.Abs(Mathf.Atan2(
|
||||||
hit.transform.position.y - transform.position.y,
|
hit.transform.position.y - transform.position.y,
|
||||||
hit.transform.position.x - transform.position.x
|
hit.transform.position.x - transform.position.x
|
||||||
=======
|
|
||||||
/* if (ratbot == null || Mathf.Abs(Mathf.Atan2(
|
|
||||||
ratbot.transform.position.y - transform.position.y,
|
|
||||||
ratbot.transform.position.x - transform.position.x
|
|
||||||
>>>>>>> main:Assets/Scripts C#/Teo.cs
|
|
||||||
) - Mathf.Atan2(
|
) - Mathf.Atan2(
|
||||||
Input.mousePosition.y - Screen.height/2,
|
Input.mousePosition.y - Screen.height/2,
|
||||||
Input.mousePosition.x - Screen.width/2
|
Input.mousePosition.x - Screen.width/2
|
||||||
)) > swingRangeDeg * Mathf.Deg2Rad
|
)) > swingRangeDeg * Mathf.Deg2Rad
|
||||||
) */
|
) continue;
|
||||||
if (ratbot == null) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
ratbot.Damage(damageStrength);
|
ratbot.Damage(damageStrength);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user