Crown Placement and Start of Game
Lisez pas mes commits svp T_T
This commit is contained in:
parent
c2af70eeb4
commit
e805b7eb9c
13 changed files with 4399 additions and 3688 deletions
|
@ -6,13 +6,15 @@ public class Crown : MonoBehaviour
|
|||
{
|
||||
|
||||
public event Action OnClicked;
|
||||
private bool crowned=false;
|
||||
public bool crowned=false;
|
||||
[SerializeField] TextMeshProUGUI texte;
|
||||
|
||||
|
||||
[SerializeField] private Camera _camera;
|
||||
[SerializeField] private LayerMask placementLayer;
|
||||
|
||||
[SerializeField] private GameObject startButton;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
texte.enabled = false;
|
||||
|
@ -40,6 +42,8 @@ public class Crown : MonoBehaviour
|
|||
if (Physics.Raycast(ray, out hit, 100, placementLayer))
|
||||
{
|
||||
OnClicked -= Crowning;
|
||||
crowned = true;
|
||||
startButton.SetActive(true);
|
||||
return hit.transform.gameObject;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue