protected T GetInterface <T>(StepBase stepBase) { T step = stepBase.GetComponent <T>(); if (step == null) { return(default(T)); } return(step); }