Esempio n. 1
0
    public override StatusEffect Clone()
    {
        IncreaseMovementSpeed temp = new IncreaseMovementSpeed();

        temp.id           = id;
        temp.amount       = amount;
        temp.turnLifeTime = turnLifeTime;
        return(temp);
    }
Esempio n. 2
0
 public void TogglePauseMenu()
 {
     pauseMenu.gameObject.SetActive(!pauseMenu.gameObject.activeSelf);
     foreach (GameObject go in disableOnPause)
     {
         go.SetActive(!go.activeSelf);
     }
     CarMovement[] cars = FindObjectsOfType <CarMovement>();
     foreach (CarMovement car in cars)
     {
         car.enabled = !car.enabled;
         Rigidbody2D rb = car.GetComponent <Rigidbody2D>();
         rb.isKinematic = !rb.isKinematic;
         IncreaseMovementSpeed ims = car.GetComponent <IncreaseMovementSpeed>();
         ims.enabled = !ims.enabled;
     }
 }