init
This commit is contained in:
commit
102013b228
1443 changed files with 1065651 additions and 0 deletions
46
Assets/Scripts/ChairsGame/ChairsChairController.cs
Normal file
46
Assets/Scripts/ChairsGame/ChairsChairController.cs
Normal file
|
@ -0,0 +1,46 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class ChairsChairController : MonoBehaviour
|
||||
{
|
||||
|
||||
public bool occupied;
|
||||
public bool assigned;
|
||||
|
||||
[SerializeField] ChairsGameController gameController;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void AssignSeat()
|
||||
{
|
||||
this.occupied = true;
|
||||
gameController.OccupyChair(this);
|
||||
}
|
||||
|
||||
/*
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (other.CompareTag("Enemy"))
|
||||
{
|
||||
if (occupied)
|
||||
{
|
||||
other.GetComponent<ChairsEnemyController>().ChooseNewChair();
|
||||
}
|
||||
else
|
||||
{
|
||||
occupied = true;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue