Beispiel #1
0
    // [Tooltip("Hold Current Activity that is still active on the screen")]
    // private GameObject CurrentActivity;/***********/
    //Show new Activity page on the screen Change any where using GameManager
    public void SetActivity(GameObject current)
    {
        activity.SetActivity(current);

        /* if (this.CurrentActivity == null)
         * {
         *   this.CurrentActivity = current;
         *   this.CurrentActivity.SetActive(true);
         *   return;
         * }
         *
         * this.CurrentActivity.SetActive(false);
         * this.CurrentActivity = current;
         * this.CurrentActivity.SetActive(true);
         */
    }
Beispiel #2
0
 private void SetActivity(GameObject NewActivity)
 {
     activity.SetActivity(NewActivity);
 }