public void Switch(SwitchableCamera c) { print ("Switch:" + c.gameObject); currentActive = c; foreach (SwitchableCamera sc in cameras) { if(sc == c){ sc.isMain = true; sc.On(true); }else{ sc.isMain = false; sc.On(false); } } }
// Use this for initialization void Start() { switchCamera = GetComponent<SwitchableCamera> (); org = transform.position; orgSize = GetComponent<Camera>().orthographicSize; }
void Start() { switchCamera = GetComponent<SwitchableCamera>(); follow = GetComponent<SmoothFollow>(); // damping = follow.rotationDamping; }