Files

17 lines
416 B
C#
Raw Permalink Normal View History

2026-04-05 18:57:16 +10:00
using System;
using UnityEngine;
using Random = UnityEngine.Random;
namespace Easter2025.Views.Local
{
public class RandomRotationView : MonoBehaviour
{
public float min = -180f;
public float max = 180f;
public GameObject Container;
private void Awake()
{
Container.transform.rotation = Quaternion.Euler(0, Random.Range(min, max), 0);
}
}
}