Exemplo n.º 1
0
 private void OnMouseDown()
 {
     if (!StopCollider.IsCollision)
     {
         if (!MessageSystemPlayingScene.IsDead)
         {
             WaitingScreen.wait(MessageSystemPlayingScene.DisableCollider());
         }
         transform.localScale = new Vector3(changeScale, changeScale, 1);
     }
 }
Exemplo n.º 2
0
 public void JumpBeforBrianHit()
 {
     MessageSystemPlayingScene.IsJump = true;
     PlayerZone.SetNoneRigid();
     MessageSystemGameBlock.SetPlayingConstraints();
     if (!MessageSystemPlayingScene.exitFromPingPong)
     {
         MessageSystemPlayingScene.exitFromPingPong = true;
     }
     if (!MessageSystemPlayingScene.IsDead)
     {
         WaitingScreen.wait(MessageSystemPlayingScene.DisableCollider());
         MessageSystemPlayingScene.Player.GetComponent <Rigidbody2D>().AddForce(new Vector2(0, 9), ForceMode2D.Impulse);
     }
 }
 public static void Jump()
 {
     if (!StopCollider.IsCollision)
     {
         float powerJump = 10;
         isJump = true;
         PlayerZone.SetNoneRigid();
         MessageSystemGameBlock.SetPlayingConstraints();
         if (!exitFromPingPong)
         {
             exitFromPingPong = true;
             player.tag       = "Player";
         }
         if (!isDead)
         {
             WaitingScreen.wait(DisableCollider());
             player.GetComponent <Rigidbody2D>().AddForce(new Vector3(0, powerJump, 0), ForceMode2D.Impulse);
             player.GetComponent <Animator>().SetBool("IsJumpUp", true);
         }
     }
 }
Exemplo n.º 4
0
 public void DisCol()
 {
     WaitingScreen.wait(MessageSystemPlayingScene.DisableCollider());
 }
Exemplo n.º 5
0
 void DisableScreen()
 {
     gameObject.SetActive(false);
     WaitingScreen.wait(gameObject);
 }