示例#1
0
    /// <summary>
    /// Fade in
    /// </summary>
    /// <returns></returns>
    public bool FadeIn()
    {
        float alpha = controller.GetFloat(SMOOTH) + Time.deltaTime;

        controller.SetFloat(SMOOTH, Mathf.Clamp01(alpha));
        if (alpha >= 1.0f)
        {
            return(true);
        }
        return(false);
    }