コード例 #1
0
 void Start()
 {
     healthmana    = GetComponent <CharacterHealthMana> ();
     stats         = GetComponent <CharacterStats> ();
     charEffects   = GetComponent <CharacterEffects> ();
     move          = GetComponent <CharacterMove> ();
     headTransform = transform.Find("CharacterHead");
     handTransform = headTransform.Find("LeftSpell");
     handParticles = handTransform.GetComponent <ParticleSystem> ();
 }
コード例 #2
0
 void Start()
 {
     healthScript = GetComponent<CharacterHealthMana> ();
     healthSlider = GameObject.Find ("MainCanvas").transform.Find("StatsPanel").Find("PlayerHealthBar").GetComponent<Slider> ();
     manaSlider = GameObject.Find ("MainCanvas").transform.Find("StatsPanel").Find("PlayerManaBar").GetComponent<Slider> ();
 }
コード例 #3
0
 void Start()
 {
     healthScript = GetComponent <CharacterHealthMana> ();
     healthSlider = GameObject.Find("MainCanvas").transform.Find("StatsPanel").Find("PlayerHealthBar").GetComponent <Slider> ();
     manaSlider   = GameObject.Find("MainCanvas").transform.Find("StatsPanel").Find("PlayerManaBar").GetComponent <Slider> ();
 }
コード例 #4
0
 void Start()
 {
     healthmana = GetComponent<CharacterHealthMana> ();
 }
コード例 #5
0
 void Start()
 {
     healthmana = GetComponent<CharacterHealthMana> ();
     stats = GetComponent<CharacterStats> ();
     charEffects = GetComponent<CharacterEffects> ();
     move = GetComponent<CharacterMove> ();
     headTransform = transform.Find ("CharacterHead");
     handTransform = headTransform.Find ("LeftSpell");
     handParticles = handTransform.GetComponent<ParticleSystem> ();
 }
コード例 #6
0
 void Start()
 {
     healthmana = GetComponent <CharacterHealthMana> ();
 }