Exemplo n.º 1
0
    void Screenshake_Command(string[] param)
    {
        Debug.Log("Screenshake happening");

        if (param.Length != 1)
        {
            Debug.Log("Incorrect use of Screenshake. Use Screenshake {x, where x is the intensity from 1 to 10");
        }
        else
        {
            int amount = int.Parse(param[0]);
            if (amount >= 1 && amount <= 10)
            {
                screen.Screenshake(amount);
            }
        }
    }