Esempio n. 1
0
    // Sets the state of the ground
    public void SetGround(float scale, float time)
    {
        GroundController gc = GameObjectFinder.FindGroundController();

        if (PhotonNetwork.connected)
        {
            gc.SetTimePassedForAll(time);
            gc.SetScaleForAll(scale);
        }
        else
        {
            gc.TimePassed           = time;
            gc.transform.localScale = new Vector3(scale, 1, scale);
        }
    }