Example #1
0
    /// <summary>
    /// Subtract PowerupMeter
    /// </summary>
    /// <param name="amount">Supply this argument as fourth. E.g. 1 equals to 1/4 subtraction of full meter</param>
    public bool TestSubtract(int _amount)
    {
        float amount = _amount * cardinal / 4;

        if (amount > current_amount)
        {
            shaker.EnableShake();
            return(false);
        }

        return(true);
    }
Example #2
0
 public void Shake()
 {
     shaker.EnableShake();
 }