Ejemplo n.º 1
0
    public void Death()
    {
        AddReward(-1f);
        c.enabled = false;
        if (!trainingMode)
        {
            softBody.deformationResistance = 0;
        }
        EndEpisode();

        if (trainingMode)
        {
            actor.ResetParticles();
            Vector3 pos = e.allies[0].GetComponent <EnemyOneSM> ().NavMeshSpot();
            pos.y = 1.5f;
            actor.Teleport(pos, manager.gameObject.transform.rotation);
        }
    }
 public void Teleport()
 {
     actor.Teleport(target.position, target.rotation);
 }