Advertisement
Pro_Unit

Untitled

Feb 12th, 2021
802
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1. using System;
  2. using UnityEngine;
  3.  
  4. namespace DefaultNamespace
  5. {
  6.     [Serializable]
  7.     public class PointInfo
  8.     {
  9.         [SerializeField] private float _angle;
  10.         [SerializeField] private float _percent = 1f;
  11.  
  12.         public Vector3 Direction => Quaternion.AngleAxis(_angle, Vector3.up) * Vector3.forward;
  13.  
  14.         public float percent => _percent;
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement