Пример #1
0
        public void OnEvent(TimeMgr.Action a)
        {
            Log.i("gameobject act=" + act + "," + id, Log.Tag.Sitcom);
            switch (act)
            {
            case "create":
                Create();
                break;

            case "destory":
                Destory();
                break;

            case "show":
                Show();
                break;

            case "hide":
                Hide();
                break;

            case "move":
                Move();
                break;

            case "transform":
                Transform();
                break;
            }
        }
Пример #2
0
        public void OnEvent(TimeMgr.Action a)
        {
            Log.i("camera act=" + act + "," + id, Log.Tag.Sitcom);
            if (actor != null)
            {
                mCam = GHelper.GetGameObjectByName(actor.Split(','));
            }
            switch (act)
            {
            case "shake":
                Shake();
                break;

            case "blur":
                Blur();
                break;

            case "radiaBlur":
                RadiaBlur();
                break;

            case "move":
                Move();
                break;

            default:
                Log.e("SitcomCaram not support act=" + act);
                break;
            }
        }