public void NewPlayer(GameObject player) { player.GetComponent <OtherPlayer>().sethpbar(Instantiate(otherplayergui, VCharactorCanvas.getins().transform)); }
void SpawnEnemy() { GameObject a= op.Ins(transform,transform.position,transform.rotation); GameObject b= opgui.Ins( VCharactorCanvas.getins().transform); a.GetComponent<EnemyCon>().sethpbar(b,this); }