add some extra assets FX and SFX

This commit is contained in:
Robii Aragon
2026-03-29 23:03:14 -07:00
parent 6ef3eb1535
commit 24dc66a81e
10142 changed files with 2535978 additions and 36608 deletions

View File

@@ -4,39 +4,45 @@ using UnityEngine;
public class pointToLook : MonoBehaviour
{
[Header ("Main Settings")]
[Space]
[Header ("Main Settings")]
[Space]
public bool pointToLookEnabled = true;
public bool pointToLookEnabled = true;
[Space]
[Header ("Component")]
[Space]
[Space]
[Header ("Component")]
[Space]
public Transform pointToLookTransform;
public Transform pointToLookTransform;
[Space]
[Space]
[Space]
[Space]
[TextArea (3, 10)] public string explanation = "Put this component in an object with a trigger on it and the layer 'Ignore Raycast', " +
"in order to be detected by the main player camera system as target to look";
[TextArea (3, 10)]
public string explanation = "Put this component in an object with a trigger on it and the layer 'Ignore Raycast', " +
"in order to be detected by the main player camera system as target to look";
public Transform getPointToLookTransform ()
{
if (pointToLookTransform == null) {
pointToLookTransform = transform;
}
public Transform getPointToLookTransform ()
{
if (pointToLookTransform == null) {
pointToLookTransform = transform;
}
return pointToLookTransform;
}
return pointToLookTransform;
}
public void setPointToLookEnabledState (bool state)
{
pointToLookEnabled = state;
}
public void setPointToLookEnabledState (bool state)
{
pointToLookEnabled = state;
}
public bool isPointToLookEnabled ()
{
return pointToLookEnabled;
}
public bool isPointToLookEnabled ()
{
return pointToLookEnabled;
}
public void checkToRemoveThisObjectFromPlayerLockOn ()
{
applyDamage.checkIfPlayerIsLookingAtDeadTarget (transform, getPointToLookTransform ());
}
}