Esempio n. 1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player")
     {
         PlayerMovementController gc = other.gameObject.GetComponent <PlayerMovementController>();
         if (null != gc)
         {
             Instantiate(m_tParticleEffect, other.transform.position, Quaternion.identity);
             FloorManager fm = GameObject.Find("FloorManager").GetComponent <FloorManager>();
             fm.IncreaseSpeed();
             // Play an Audio Sting
             GameGlobals.Instance.m_iCoinsCollected++;
             Destroy(gameObject);
         }
     }
 }