Beispiel #1
0
 public void ResetPosition()
 {
     Debug.Log(_charRigid.position);
     _charRigid.velocity = new Vector3(0f, 0f, 0f);
     charRacket.ResetPosRacket();
     _charRigid.position = new Vector3((isLeft ? -1: 1) * 7f, 0f, 0f);
 }
Beispiel #2
0
    public void ResetPosition()
    {
        var myAreaPosition = myArea.position;

        _mAgentRb.velocity = new Vector3(0f, 0f, 0f);
        _mAgentRb.position = new Vector3(myAreaPosition.x + _mInvertMult * 7f,
                                         myAreaPosition.y,
                                         myAreaPosition.z);
        charRacket.ResetPosRacket();
    }