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>(); }
// Use this for initialization void Start() { shooting2 = shooting2.GetComponent <Shooting2>(); }