Beispiel #1
0
    private void ResetHologram()
    {
        hologram.gameObject.SetActive(true);
        hologram.gameObject.transform.position = spawnPoint.transform.position;
        hologram.ResetEntity();
        Vector3    lookDirection = player.transform.position - hologram.transform.position;
        Quaternion lookRotation  = Quaternion.LookRotation(lookDirection, Vector3.up);

        hologram.transform.rotation = lookRotation;
    }