Пример #1
0
    // 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>();
    }
Пример #2
0
    // 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> ();
    }