コード例 #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        Script_DayNotificationManager t = (Script_DayNotificationManager)target;

        if (GUILayout.Button("Play Map Notification"))
        {
            t.PlayDayNotification();
        }
    }
コード例 #2
0
    // ----------------------------------------------------------------------

    public void Setup()
    {
        if (Control == null)
        {
            Control = this;
        }
        else if (Control != this)
        {
            Destroy(this.gameObject);
        }

        timelineController = GetComponent <Script_TimelineController>();

        dayNotification.Setup();

        isInteractAfter = true;
    }