コード例 #1
0
ファイル: Boss.cs プロジェクト: ThomKir99/The-End-Of-Gods-2.0
 private void updatePushTimer()
 {
     pushThePlayerTimer -= Time.deltaTime;
     if (pushThePlayerTimer < 0f)
     {
         KeyImputManager.freePlayerMouvement();
         pushThePlayer      = false;
         pushThePlayerTimer = 1f;
     }
 }
コード例 #2
0
 void Awake()
 {
     KeyImputManager.freePlayerMouvement();
     sprite                 = GetComponent <SpriteRenderer>();
     animator               = GetComponent <Animator>();
     rigidbody              = GetComponent <Rigidbody2D>();
     timeForNextDash        = PlayerDashDelay;
     timeForNextInvisiblity = PlayerInvisibleDelay;
     resetImmunity();
     SetBackground();
 }
コード例 #3
0
 public void closedShop()
 {
     KeyImputManager.freePlayerMouvement();
     shopIsOpen   = false;
     shop.enabled = false;
 }
コード例 #4
0
 public void unlockPlayerMovement()
 {
     KeyImputManager.freePlayerMouvement();
     rigidbody.velocity = Vector3.zero;
 }