// Use this for initialization void Start() { animator = GetComponent <Animator> (); player = GetComponent <MadsPlayerController> (); colInfo = GetComponent <RaycastCollisionChecks> (); rb = GetComponent <Rigidbody2D> (); }
// Use this for initialization void Start() { rb = GetComponent <Rigidbody2D> (); colInfo = GetComponent <RaycastCollisionChecks> (); flashColor = GetComponent <FlashColor> (); deathShaker = GetComponent <DeathShake> (); SetupMoveAndJumpSpeed(); }
// Use this for initialization void Start() { rigidbody2d = GetComponent <Rigidbody2D> (); playerInput = GetComponent <PlayerInput> (); raycastCollisionChecks = GetComponent <RaycastCollisionChecks> (); levelBar = FindObjectOfType <LevelUpBar> (); audioclip = GetComponent <AudioSource> (); SetupMoveAndJumpSpeed(); }
void Start() { controller = GetComponentInParent <VolgarrController>(); colInfo = GetComponentInParent <RaycastCollisionChecks>(); }
public float direction = 1.0f; // 1.0f is right, -1.0 is left void Start() { rb = GetComponent <Rigidbody2D>(); colInfo = GetComponent <RaycastCollisionChecks>(); SetupMoveAndJumpSpeed(); }