示例#1
0
    protected T GetInterface <T>(StepBase stepBase)
    {
        T step = stepBase.GetComponent <T>();

        if (step == null)
        {
            return(default(T));
        }
        return(step);
    }