// Use this for initialization protected override void Start() { base.Start(); _safe = GameObject.FindGameObjectWithTag(vaultTag); stateMachine = GetComponent<StateMachine>(); stateMachine.MaxSpeed = Speed; }
// Use this for initialization protected override void Start() { base.Start(); safecracker = GameObject.FindGameObjectWithTag("SafeCracker"); stateMachine = GetComponent<StateMachine>(); stateMachine.MaxSpeed = Speed; }
// Use this for initialization protected override void Start() { base.Start(); _safe = GameObject.FindGameObjectWithTag("Vault"); _truck = GameObject.FindGameObjectWithTag("Truck"); _stateMachine = GetComponent<StateMachine>(); _stateMachine.MaxSpeed = Speed; }
// Use this for initialization protected override void Start() { base.Start(); _stateMachine = GetComponent<StateMachine>(); _stateMachine.MaxSpeed = Speed; }