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>(); }
void Start() { controller = GetComponent <Controller.CharacterController>(); input = GetComponent <InputController>(); }
// Start is called before the first frame update void Start() { combat = GetComponent <CombatController>(); controller = GetComponent <Controller.CharacterController>(); sprt = GetComponent <SpriteRenderer>(); }
private void Start() { rb = GetComponent <Rigidbody2D>(); controller = GetComponent <Controller.CharacterController>(); input = GetComponent <InputController>(); }
private void Start() { controller = GetComponent <Controller.CharacterController>(); }