示例#1
0
 private void Start()
 {
     originPos    = Vector3.zero;
     audioSource  = GetComponent <AudioSource>();
     theCrosshair = FindObjectOfType <Crosshair>();
     thestatusHP  = FindObjectOfType <StatusHP>();
     monsterHp1   = FindObjectOfType <MonsterHp1>();
     thepig1      = FindObjectOfType <Pig1>();
 }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     thePlayerStatus = FindObjectOfType <StatusHP>();
     theViewAngle    = GetComponent <FieldOfViewAngle>();
     nav             = GetComponent <NavMeshAgent>();
     theAudio        = GetComponent <AudioSource>();
     currentTime     = waitTime;
     isAction        = true;
 }
示例#3
0
    private void Start()
    {
        originPos    = Vector3.zero;
        audioSource  = GetComponent <AudioSource>();
        theCrosshair = FindObjectOfType <Crosshair>();
        thestatusHP  = FindObjectOfType <StatusHP>();
        monsterHp1   = FindObjectOfType <MonsterHp1>();
        thepig1      = FindObjectOfType <Pig1>();

        WeaponManager.currentWeapon     = currentGun.GetComponent <Transform>();
        WeaponManager.currentWeaponAnim = currentGun.anim;
    }
 void Awake()
 {
     statusPower       = GameObject.Find("PowerValueText").GetComponent <StatusPower>();
     statusDefence     = GameObject.Find("DefenceValueText").GetComponent <StatusDefence>();
     statusSpeed       = GameObject.Find("SpeedValueText").GetComponent <StatusSpeed>();
     statusHP          = GameObject.Find("HPValueText").GetComponent <StatusHP>();
     statusMP          = GameObject.Find("MPValueText").GetComponent <StatusMP>();
     statusLevel       = GameObject.Find("LevelValueText").GetComponent <StatusLevel>();
     statusPlayerName  = GameObject.Find("PlayerNameText").GetComponent <StatusPlayerName>();
     statusPlayerImage = GameObject.Find("PlayerImage").GetComponent <StatusPlayerImage>();
     command04Display  = GameObject.Find("BackGround04").GetComponent <Command04Display>();
 }
示例#5
0
 private void Start()
 {
     thePlayerStatus = FindObjectOfType <StatusHP>();
 }
示例#6
0
 void Awake()
 {
     statusHP = GameObject.Find("HPValueText").GetComponent <StatusHP>();
     statusMP = GameObject.Find("MPValueText").GetComponent <StatusMP>();
 }