void Start() { busted = GameObject.Find("Main Camera").GetComponent <Busted>(); if (!busted) { Debug.LogError("CoworkerAttention Busted not set."); } }
public World() { drugsBoat = new DrugsBoat(new Vector2(200, 150)); policeStation = new PoliceStation(); spawnPoint = new Vector2(600, 580); policeStation.createBoat(new PoliceBoat(spawnPoint)); dangerLevel = 1; busted = new Busted(new Vector2(0, 0)); bustedTime = 0; }
public Aggressive() { busted = new Busted(new Vector2(0, 0)); }