public static GameObject CreateFlasher(int width, int height, Color col, float duration) { GameObject go = Primitives.CreateRectangle(width, height, col); S_Flasher flasher = go.AddComponent <S_Flasher>(); flasher.Init(width, height, duration); return(go); }