before i ask this question , I HAVE looked at answers but none of them quiet fit the same sort of problem as mine … Any way I have a little bit of my code here , im calling my RayShoot function to my other script called camshake ( for camera shake when i shoot ) but i cant figure out whats wrong. ( BTW its little bits of my code , all the braces are correct )
var other : camshake;
other = gameObject.GetComponent("camshake");
function Start () {
BulletsLeft = BulletsPerClip;
muzzleFlash.emit = false;
PHitParticle.emit = false;
}
function Update (){
other.RayShoot ();
if( KeyTimer > 0){
KeyTimer -= Time.deltaTime;
}
function Update (){
other.RayShoot ();
if( KeyTimer > 0){
KeyTimer -= Time.deltaTime;
}