Example #1
0
 private void Awake()
 {
     ins = this;
 }
Example #2
0
 public void NewPlayer(GameObject player)
 {
     player.GetComponent <OtherPlayer>().sethpbar(Instantiate(otherplayergui, VCharactorCanvas.getins().transform));
 }
Example #3
0
 void SpawnEnemy()
 {
     GameObject a= op.Ins(transform,transform.position,transform.rotation);
     GameObject b= opgui.Ins( VCharactorCanvas.getins().transform);
     a.GetComponent<EnemyCon>().sethpbar(b,this);
 }