ES
Size: a a a
ES
ES
ES
P#
P#
P#
KB
ES
P#
P#
AN
float x;
float angle = Vector3.SignedAngle(transform.forward, enemy.target.transform.position - transform.position, Vector3.up);
if (angle < 0)
{
x = 0;
}
else
{
x = Camera.main.scaledPixelWidth;
}
arrow.transform.position = new Vector3(x, arrowPos.y, arrowPos.z);
AN
P#
float x;
float angle = Vector3.SignedAngle(transform.forward, enemy.target.transform.position - transform.position, Vector3.up);
if (angle < 0)
{
x = 0;
}
else
{
x = Camera.main.scaledPixelWidth;
}
arrow.transform.position = new Vector3(x, arrowPos.y, arrowPos.z);
ES
ES
ES
P#
ES