예제 #1
0
파일: OTTween.cs 프로젝트: jedirandy/Eileen
    void CheckController()
    {
        if (controller == null)
        {
            controller = OT.Controller(typeof(OTTweenController)) as OTTweenController;
            if (controller == null)
            {
                controller = new OTTweenController();
                OT.AddController(controller);
            }
        }
        else
        {
            if ((OT.Controller(typeof(OTTweenController)) as OTTweenController) == null)
            {
                OT.AddController(controller);
            }
        }

        if (controller != null)
        {
            controller.Add(this);
        }
    }