}//end of oncollision public void showGO() { mainPnl mainpnl = gameCanvas.GetComponent <mainPnl>(); GameManager.instance.gameOn = false; mainpnl.showGameOver(); }
public void showGO() { mainPnl mainpnl = gameCanvas.GetComponent <mainPnl>(); //mainpnl.showGameOver(); }