void Start()
    {
        clickingArea = clickingArea.GetComponent <ClickingArea>();
        anims        = GetComponent <Animator>();
        anims.SetFloat("flying", 2);



        playerControl = GetComponent <PlayerControl>();
        shooted       = GetComponent <SwordScript>();

        startScale = rocket.GetComponent <Transform>().transform.localScale;
    }
    private void Start()
    {
        shooting2       = shooting2.GetComponent <Shooting2>();
        clickingArea    = clickingArea.GetComponent <ClickingArea>();
        startSpeed      = speed;
        startJumpForce  = jumpForce;
        startingScale   = transform.localScale;
        fliperScript    = GameObject.Find("Player").GetComponent <FliperScript>();
        anim            = GetComponent <Animator>();
        body            = GetComponent <Rigidbody2D>();
        body.fixedAngle = true;

        movingjoystick = movingjoystick.GetComponent <MovingJoystick>();
        jumpingButton  = jumpingButton.GetComponent <JumoingButton>();
    }
Beispiel #3
0
 void Start()
 {
     player       = GameObject.Find("Player");
     clickingArea = clickingArea.GetComponent <ClickingArea>();
 }
Beispiel #4
0
 // Use this for initialization
 void Start()
 {
     clickingArea = clickingArea.GetComponent <ClickingArea>();
 }