// Use this for initialization void Start() { //player = FindObjectOfType<PlayerController>(); //Find player camera = FindObjectOfType <CameraController>(); //Find camera weapon = FindObjectOfType <WeaponCharge>(); //Find weapon healthManager = FindObjectOfType <HealthManager>(); sword = FindObjectOfType <SwordAttack>(); }
// Use this for initialization void Start() { anim = GetComponent <Animator>(); weapon = FindObjectOfType <WeaponCharge>(); }