コード例 #1
0
 protected override void Awake()
 {
     base.Awake();
     groundedChecker       = transform.GetComponentInChildren <PlayerGroundedChecker>();
     pidSpeed              = GetComponent <PIDController_Vector3>();
     rb.maxAngularVelocity = maxRollingAngularSpeed;
     physicsMaterial       = GetComponent <Collider>().material;
 }
コード例 #2
0
 private void Awake()
 {
     rb = GetComponent <Rigidbody>();
     //playerIronSteel = GetComponent<AllomanticIronSteel>();
     groundedChecker = GetComponentInChildren <PlayerGroundedChecker>();
 }