r2mods/ilspy_dump/ror2_csproj/ChefFoodPickController.cs

30 lines
466 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
public class ChefFoodPickController : MonoBehaviour
{
[SerializeField]
public GameObject foodModel1;
[SerializeField]
public GameObject foodModel2;
[SerializeField]
public GameObject foodModel3;
private void Start()
{
switch (Random.Range(0, 2))
{
case 0:
foodModel1.SetActive(value: true);
break;
case 1:
foodModel2.SetActive(value: true);
break;
case 2:
foodModel3.SetActive(value: true);
break;
}
}
}