Beispiel #1
0
    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();
    }
Beispiel #2
0
 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>();
 }