コード例 #1
0
    // Use this for initialization
    void Start()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }
        testAction = TimedActionFactory.CreateTimedAction(60, DateTime.Now);             // working
        string      seria_action   = testAction.SerializeToJSON();
        TimedAction deseria_action = TimedActionFactory.CreateTimedAction(seria_action); // not working

        TimedActionFactory.CreateTimedAction(deseria_action);
    }