Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class escript : MonoBehaviour
- {
- public Vector2 _movimiento1;
- public Vector2 _movimiento2;
- public float _velocity;
- public Vector2 PosInicial;
- public float _magnitud;
- // Use this for initialization
- void Start()
- {
- PosInicial = transform.position;
- _magnitud = Mathf.Sqrt(Mathf.Pow(_movimiento1.x, 2) +
- Mathf.Pow(_movimiento1.y, 2));
- }
- // Update is called once per frame
- void Update()
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement