// kenarlara degdigi surece hızını dusurur void OnCollisionStay(Collision collision) { if (collision.gameObject.name.Contains("Edge")) { speed = sharkCreate.getSelectSpeed() / 2; Vibrator(); } }
void Start() { IronSourceScript_.Instante.LoadInterstitial();//BU kod reklamı yükler bekletir audioSrcShark = GetComponent <AudioSource>(); anim = GetComponent <Animation>(); sharkCreate = FindObjectOfType <SharkCreate>(); menuControl = FindObjectOfType <MenuControl>(); health = sharkCreate.getSelectHealth(); speed = sharkCreate.getSelectSpeed(); mana = 0; PrefsReset(); speedModifier = 0.01f; // 0.005f degeri ideal deger seaPositionZ = 5f; powerTime = 0; barrelTime = 0; fishCounter = 0; barrelPower = false; powerUp = false; StartedSea(); RespawnParticle(); }