void Shoot() { SceenShake.ShakeScreen(0.02f); Instantiate(rockets[curRockets], transform.position, Quaternion.identity); BackGroundSetting.FundsComsumed(bulletCost); boom.pitch = 1 * Random.Range(0.8f, 1.2f); boom.Play(); }
void Shoot() { SceenShake.ShakeScreen(0.005f); Instantiate(bullets, transform.position, Quaternion.identity); BackGroundSetting.FundsComsumed(bulletCost); }
// Use this for initialization void Awake() { mainCam = GameObject.Find("Main Camera").transform; screenCtrl = GameObject.Find("sceenCtrl").GetComponent <SceenShake>(); }