示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     //anim = GetComponent<AnimationController>();
     camera       = GameObject.FindGameObjectWithTag("MainCamera");
     rigidbody    = GetComponent <Rigidbody>();
     stats        = GetComponent <Stats>();
     tcs          = GetComponent <TargetCenterScreen>();
     soundManager = GetComponent <SoundManager>();
 }
示例#2
0
    // Start is called before the first frame update
    void Start()
    {
        //anim = GetComponent<AnimationController>();
        camera = GameObject.FindGameObjectWithTag("MainCamera");

        rigidbody = GetComponent <Rigidbody>();
        stats     = GetComponent <Stats>();
        tcs       = GetComponent <TargetCenterScreen>();

        soundManager = GetComponent <SoundManager>();

        projectileSpeed = 80; //placeholder value
        cooldown        = 0;
    }