void Start()
 {
     rigidbody             = gameObject.GetComponent <Rigidbody2D>();
     controller            = GetComponent <Controller.CharacterController>();
     rigidbody.constraints = RigidbodyConstraints2D.FreezeRotation;
     setGravity(controller.data.gravity);
 }
 private void Start()
 {
     anim       = GetComponent <Animator>();
     controller = GetComponent <Controller.CharacterController>();
     input      = GetComponent <InputController>();
     rig        = GetComponent <Rigidbody2D>();
 }
Exemple #3
0
 void Start()
 {
     controller = GetComponent <Controller.CharacterController>();
     input      = GetComponent <InputController>();
 }
Exemple #4
0
 // Start is called before the first frame update
 void Start()
 {
     combat     = GetComponent <CombatController>();
     controller = GetComponent <Controller.CharacterController>();
     sprt       = GetComponent <SpriteRenderer>();
 }
Exemple #5
0
 private void Start()
 {
     rb         = GetComponent <Rigidbody2D>();
     controller = GetComponent <Controller.CharacterController>();
     input      = GetComponent <InputController>();
 }
 private void Start()
 {
     controller = GetComponent <Controller.CharacterController>();
 }