You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PlumberUltimateAds/Assets/AllIn1SpriteShader/Demo/Scripts/DemoItem.cs

14 lines
276 B
C#

using UnityEngine;
namespace AllIn1SpriteShader
{
public class DemoItem : MonoBehaviour
{
static readonly Vector3 lookAtZ = new Vector3(0, 0, 1);
void Update()
{
transform.LookAt(transform.position + lookAtZ);
}
}
}