Exemplo n.º 1
0
    private IEnumerator StartSinking()
    {
        yield return(new WaitForSeconds(sinkDelay));

        GetComponent <NavMeshAgent>().enabled  = false;
        GetComponent <Rigidbody>().isKinematic = true;

        _isSinking = true;

        ScoreCounting.AccountScore(scoreValue);

        StartCoroutine(Remove(gameObject, 2));
    }
Exemplo n.º 2
0
 private void Start()
 {
     enemiesList = transform.GetChild(4);
     counter     = score.GetComponent <ScoreCounting>();
 }