Exemplo n.º 1
0
 private void Start()
 {
     originPos    = Vector3.zero;
     audioSource  = GetComponent <AudioSource>();
     theCrosshair = FindObjectOfType <Crosshair>();
     thestatusHP  = FindObjectOfType <StatusHP>();
     monsterHp1   = FindObjectOfType <MonsterHp1>();
     thepig1      = FindObjectOfType <Pig1>();
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
    }
Exemplo n.º 4
0
 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>();
 }
Exemplo n.º 5
0
 private void Start()
 {
     thePlayerStatus = FindObjectOfType <StatusHP>();
 }
Exemplo n.º 6
0
 void Awake()
 {
     statusHP = GameObject.Find("HPValueText").GetComponent <StatusHP>();
     statusMP = GameObject.Find("MPValueText").GetComponent <StatusMP>();
 }