private void Awake()
    {
        customerspawner = FindObjectOfType <SladChef_CustomerSpawner>();
        gameManager     = FindObjectOfType <SaladChef_GameManager>();

        players = FindObjectsOfType <Player>();

        gameManager.KillCustomers += DestroyGameObject;
    }
 private void Awake()
 {
     gamemamnager = FindObjectOfType <SaladChef_GameManager>();
 }
Beispiel #3
0
    private List <string> choppedVegetables = new List <string>();   //The list of chopped vegetables

    private void Awake()
    {
        r_Body      = GetComponent <Rigidbody2D>();
        gamemanager = FindObjectOfType <SaladChef_GameManager>();
        timeLeft    = gamemanager.TimeLeft;
    }