Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class escript : MonoBehaviour
  6. {
  7.     public Vector2 _movimiento1;
  8.     public Vector2 _movimiento2;
  9.     public float _velocity;
  10.     public Vector2 PosInicial;
  11.     public float _magnitud;
  12.     // Use this for initialization
  13.     void Start()
  14.     {
  15.         PosInicial = transform.position;
  16.         _magnitud = Mathf.Sqrt(Mathf.Pow(_movimiento1.x, 2) +
  17.             Mathf.Pow(_movimiento1.y, 2));
  18.     }
  19.  
  20.     // Update is called once per frame
  21.     void Update()
  22.     {
  23.        
  24.        
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement