Example #1
0
	public void _initializeController()
	{
		if (IsInitialized()) return;

		input = new ControllerInput(playerId);

		leftWing = new BirdWing(transform.FindInChildren("Shoulder_L"), "_L", input, this);
		rightWing = new BirdWing(transform.FindInChildren("Shoulder_R"), "_R", input, this);

		leftWing.trigger = ControllerAction.R2;
		rightWing.trigger = ControllerAction.L2;


		leftLeg = new BirdLeg(transform.FindInChildren("Leg_Feet_L"), "_L", input);
		rightLeg = new BirdLeg(transform.FindInChildren("Leg_Feet_R"), "_R", input);


		head = new BirdHead(transform.FindInChildren("Neck"), input, this);

		body = new BirdBody(transform.FindInChildren("Body"), input, this);

		tail = new BirdTail(transform.FindInChildren("Tail_1"), input, this);

		_isInitialized = true;
	}
Example #2
0
    public void _initializeController()
    {
        if (IsInitialized())
        {
            return;
        }

        input = new ControllerInput(playerId);

        leftWing  = new BirdWing(transform.FindInChildren("Shoulder_L"), "_L", input, this);
        rightWing = new BirdWing(transform.FindInChildren("Shoulder_R"), "_R", input, this);

        leftWing.trigger  = ControllerAction.R2;
        rightWing.trigger = ControllerAction.L2;


        leftLeg  = new BirdLeg(transform.FindInChildren("Leg_Feet_L"), "_L", input);
        rightLeg = new BirdLeg(transform.FindInChildren("Leg_Feet_R"), "_R", input);


        head = new BirdHead(transform.FindInChildren("Neck"), input, this);

        body = new BirdBody(transform.FindInChildren("Body"), input, this);

        tail = new BirdTail(transform.FindInChildren("Tail_1"), input, this);

        _isInitialized = true;
    }