// Use this for initialization void Start() { anim = GetComponentInParent <Animator>(); GameObject go = GameObject.Find("Player"); script = go.GetComponent <MovementBasic>(); }
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>(); }
private void Start() { myJC = GetComponentInParent <JumpController>(); myMB = GetComponentInParent <MovementBasic>(); }
// Use this for initialization void Start() { GameObject go = GameObject.Find("Player"); script = go.GetComponent <MovementBasic>(); }