// Use this for initialization void Start() { Erl = GameObject.Find("Erl").GetComponent <Controller2D>(); Isa = GameObject.Find("Isa").GetComponent <FlyingController2D>(); erlFocusArea = new FocusArea(Erl.collider.bounds, erlFocusAreaSize); camera = GetComponent <Camera>(); }
// Use this for initialization void Start() { controller = GetComponent <FlyingController2D> (); leftThruster = transform.Find("Wing/LeftThruster"); rightThruster = transform.Find("Wing/RightThruster"); leftEye = transform.Find("Head/LeftEye"); rightEye = transform.Find("Head/RightEye"); isaControlToggle = GetComponent <ToggleIsaCam>(); //anim = GetComponent<Animator> (); }