void Awake()
    {
        groundCheck = transform.Find("GroundCheck");
        speedText = transform.Find("SpeedText").GetComponent<GUIText>();
        pGrind = GetComponent<PlayerGrind>();
        //anim = GetComponentInChildren<Animator>();

        //Animation
        playerAnimator = GetComponentInChildren<tk2dSpriteAnimator>();
    }
Exemple #2
0
 void Start()
 {
     rigidbody2D.centerOfMass = new Vector3(0,stablizationAmount,0);
     pGrind = GetComponent<PlayerGrind>();
 }