상속: UnityEngine.MonoBehaviour
예제 #1
0
        void Awake()
        {
            healthDisplay = transform.Find("Health").GetComponent <TextMesh>();
            anim          = GetComponent <Animator>();
            Transform rightHand = anim.GetBoneTransform(HumanBodyBones.RightHand);

            saber     = rightHand.Find("LSaber/Beam").gameObject;
            saberCont = rightHand.GetComponentInChildren <SaberController>();
            rb        = GetComponent <Rigidbody>();
            health    = MAX_HEALTH;
        }
예제 #2
0
파일: Actor.cs 프로젝트: lmucs/Coliseo
 void Awake()
 {
     healthDisplay = transform.Find("Health").GetComponent<TextMesh>();
     anim = GetComponent<Animator>();
     Transform rightHand = anim.GetBoneTransform(HumanBodyBones.RightHand);
     saber = rightHand.Find("LSaber/Beam").gameObject;
     saberCont = rightHand.GetComponentInChildren<SaberController>();
     rb = GetComponent<Rigidbody>();
     health = MAX_HEALTH;
 }