示例#1
0
 void Die(int killer)
 {
     if (!canMove || shielded)
     {
         return;
     }
     StatManager.AddPoint(killer, playerId, 1);
     Debug.Log(" DIE : " + gameObject.name);
     canMove        = false;
     rb.isKinematic = true;
     oldColor       = GetComponent <Renderer>().material.color;
     GetComponent <Renderer>().material.color = Color.black;
     GameObject.Find("GameMode").SendMessage("Death", this, SendMessageOptions.DontRequireReceiver);
 }