示例#1
0
    /// <summary>
    /// Places the Player to the start of the level and replenishes health.
    /// </summary>
    public void Spawn(Vector3 position)
    {
        // Store spawning position
        SpawnPosition = position;

        // Move FireGirl to spawning position
        transform.position = position;
        UpdateGoalDistances();

        // Notify Sally
        _salamanderController?.AddTarget(EventType.Respawn, SpawnPosition);
    }