public void TryPrintWorldInformationText(string id, float timer, string text, Vector3 pos, Quaternion rot) { Canvas3D cnvs3d = Object.FindObjectOfType(typeof(Canvas3D)) as Canvas3D; if (cnvs3d) { cnvs3d.PrintWorldInformationText(id, timer, text, pos, rot); } }
public void TryPrintInformationText(string id, float timer, string text) { Canvas3D cnvs3d = Object.FindObjectOfType(typeof(Canvas3D)) as Canvas3D; if (cnvs3d) { cnvs3d.PrintInformationText(id, timer, text); } }