Ejemplo n.º 1
0
    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);
    }
Ejemplo n.º 2
0
    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);
        }
    }