private static void Command_AddJournal(string[] parameters) { string text = String.Join(",", parameters); VariableManager.Inject(ref text); JournalManager2.AddTextToJournal(text); }
private void Awake() { if (instance == null) { Debug.Log("TEST"); instance = this; DontDestroyOnLoad(this.transform.parent.gameObject); DontDestroyOnLoad(this.transform.gameObject); scrollRect = GetComponentInChildren <ScrollRect>(); AddTextToJournal("This case is tough, so I need to document my steps here should I need to return to them."); } else { GameObject.Destroy(this.transform.parent.gameObject); } }
public void AddToJournal() { Texture2D texture = RealTimeImage(cam); JournalManager2.AddTextToJournal(null, Sprite.Create(texture, new Rect(0, 0, cam.activeTexture.width, cam.activeTexture.height), Vector2.one * 0.5f), Vector2.one * 1000); }