コード例 #1
0
ファイル: playerStats.cs プロジェクト: HaruKawai/unity
 void Awake()
 {
     hp     = maxHealth;
     mana   = maxMana;
     isDead = false;
     myAnim = GetComponentInChildren <Animator>();
     gui    = GameObject.Find("GUI").GetComponent <GUIInteraction>();
 }
コード例 #2
0
 void Awake()
 {
     gui         = GameObject.Find("GUI").GetComponent <GUIInteraction>();
     resistencia = maxRes;
     exist       = true;
     seguir      = true;
     //radio = GetComponent<SphereCollider>().radius;
     radio = 2f;
 }
コード例 #3
0
 void Awake()
 {
     if (inst == null)
     {
         inst = this;
     }
     else
     {
         Destroy(this);
     }
     this.gameObject.SetActive(false);
 }
コード例 #4
0
ファイル: BurbujaController.cs プロジェクト: HaruKawai/unity
 void Awake()
 {
     bubble      = GameObject.FindGameObjectWithTag("Bubble");
     dagda       = GameObject.FindGameObjectWithTag("Dagda");
     gui         = GameObject.Find("GUI").GetComponent <GUIInteraction>();
     padreFuegos = GameObject.Find("Fuegos");
     dagtr       = dagda.GetComponent <Transform>();
     //rb = bubble.GetComponent<Rigidbody>();
     tr          = bubble.GetComponent <Transform>();
     bs          = bubble.GetComponent <BurbujaStats>();
     fuegosLista = GameObject.FindGameObjectsWithTag("Fuego");
     tr.position = dagtr.position + new Vector3(15, 0, 0);
     cont        = 0;
 }