private void Start() { ocb = GetComponent <OrthoCameraBehaviour>(); if (target != null) { ocb.SetFocus(target.transform.position, true); ocb.SetZoom(target.GetComponent <TrailerWalker>().zoom, true); } }
private void Start() { ocb = GetComponent <OrthoCameraBehaviour>(); if (target != null) { acc = target.GetComponent <AnotherCharacterController>(); if (acc == null) { notSureIfDoesntHaveAcc = false; } } }