예제 #1
0
        void OnBlastZoneExit()
        {
            Vector3 position = Character.transform.position;

            if (deathPrefab != null)
            {
                ParticleSystem copy = deathPrefab.Copy(position);
                copy.transform.LookAt(transform.position - position);
                copy.startColor = Character.PlayerColor;
            }
        }