Exemplo n.º 1
0
 private void Awake()
 {
     motor = GetComponent <Rigidbody2D>();
     joint = GetComponent <Joint2D>();
     if (character != null)
     {
         currentMoveSpeed       = character.GetMoveSpeed();
         currentDashSpeed       = character.GetDashSpeed();
         currentDashLength      = character.GetDashLength();
         currentDashResetLength = character.GetDashResetLength();
     }
 }