Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        anim = GetComponentInParent <Animator>();
        GameObject go = GameObject.Find("Player");

        script = go.GetComponent <MovementBasic>();
    }
Esempio n. 2
0
 void Start()
 {
     myCS = GetComponent <CharacterStats>();
     myMB = GetComponent <MovementBasic>();
     //sets the jumpCounter to whatever we set our jumptime to in the editor
     jumpTimeCounter = jumpTime;
     rb = GetComponent <Rigidbody2D>();
 }
Esempio n. 3
0
 private void Start()
 {
     myJC = GetComponentInParent <JumpController>();
     myMB = GetComponentInParent <MovementBasic>();
 }
Esempio n. 4
0
    // Use this for initialization
    void Start()
    {
        GameObject go = GameObject.Find("Player");

        script = go.GetComponent <MovementBasic>();
    }