// Start is called before the first frame update void Start() { _playerTarget = GameObject.FindWithTag("PlayerII").GetComponent("PlayerIIMovment") as PlayerIIMovment; _batTarget = GameObject.FindWithTag("Bat").GetComponent("Bat") as Bat; }
// Start is called before the first frame update private void Awake() { _target = GameObject.FindWithTag("PlayerII").GetComponent("PlayerIIMovment") as PlayerIIMovment; __target = GameObject.FindWithTag("PlayerII").GetComponent("PlayerAttackmele") as PlayerAttackmele; _batTarget = GameObject.FindWithTag("Bat").GetComponent("Bat") as Bat; }
// Start is called before the first frame update void Start() { playerPosition = gameObject.GetComponent("PlayerIIMovment") as PlayerIIMovment; }