Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     myRB   = GetComponent <Rigidbody2D>();
     myAnim = GetComponent <Animator>();
     normalizeSlopeScript = GetComponent <NormalizeSlope>();
     attackScript         = GetComponentInChildren <attackController>();
     facingRight          = true;
     instance             = this;
     DoubleJump           = canDoubleJump;
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     rigidbody2D    = GetComponent <Rigidbody2D>();
     normalizeSlope = GetComponent <NormalizeSlope>();
 }