Beispiel #1
0
    // 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>();
    }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        anim = GetComponent <Animator>();

        weapon = FindObjectOfType <WeaponCharge>();
    }