Beispiel #1
0
 private void getLiver()
 {
     canvas = GameObject.FindGameObjectWithTag("PanelMainMenu");
     button = GameObject.FindGameObjectWithTag("btnBookmark");
     liver  = GameObject.FindGameObjectWithTag("Liver1");
     script = (LiverFunctions)liver.GetComponent(typeof(LiverFunctions));
 }
Beispiel #2
0
    private void getLiver()
    {
        var liver = GameObject.FindGameObjectWithTag("Liver1");

        script = (LiverFunctions)liver.GetComponent(typeof(LiverFunctions));
    }