Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- namespace Game.Logic
- {
- public class RendererRandomColorOnStartSetter : MonoBehaviour
- {
- [SerializeField] private Renderer _renderer;
- private void Start()
- {
- _renderer.material.color = Random.ColorHSV(0, 1, 0.5f, 1, 0.5f, 1);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement