Beispiel #1
0
 public AngularVelocity(IsoCharacterMovement characterMovement, Vector2 initDirection)
 {
     this.characterMovement = characterMovement;
     lastDirection          = initDirection;
     angleChangeVelocity    = 0f;
     relativeAngleChange    = 0f;
 }
Beispiel #2
0
 void Start()
 {
     characterMovement = GetComponent <IsoCharacterMovement>();
     spriteRenderer    = GetComponentInChildren <SpriteRenderer>();
     initalState       = true;
     flipped           = true;
 }
 void Start()
 {
     characterMovement = GetComponent <IsoCharacterMovement>();
     cam             = Camera.main;
     angularVelocity = new AngularVelocity(characterMovement, ScreenMouseDirection());
 }