CharacterBehavior.checkMaterials C# (CSharp) Method

checkMaterials() public method

public checkMaterials ( ) : bool
return bool
    public virtual bool checkMaterials()
    {
        int[] reqMats = Demons[selected].GetComponent<DemonBehavior>().reqMats;
        for (int i=0; i<reqMats.Length; i++)
        {
            if(currentMats[i] < reqMats[i])
            {
                return false;
            }
        }
        return true;
    }