void Start() { _target = cam.GetComponent <alTarget>(); _targetText.text = _targetStr; TargetStatus = GameObject.Find("TargetStatus"); TargetStatus.SetActive(TargetStatusActive); }
//public float currentDamage = Camera.main.GetComponent<alTarget>().activeObject.gameObject.GetComponent<EnemyCombatScript>().Damage; void Start() { _target = cam.GetComponent <alTarget>(); }