add some extra assets FX and SFX
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace EzySlice {
|
||||
public struct Line {
|
||||
private readonly Vector3 m_pos_a;
|
||||
private readonly Vector3 m_pos_b;
|
||||
|
||||
public Line(Vector3 pta, Vector3 ptb) {
|
||||
this.m_pos_a = pta;
|
||||
this.m_pos_b = ptb;
|
||||
}
|
||||
|
||||
public float dist {
|
||||
get { return GKC_Utils.distance (this.m_pos_a, this.m_pos_b); }
|
||||
}
|
||||
|
||||
public float distSq {
|
||||
get { return (this.m_pos_a - this.m_pos_b).sqrMagnitude; }
|
||||
}
|
||||
|
||||
public Vector3 positionA {
|
||||
get { return this.m_pos_a; }
|
||||
}
|
||||
|
||||
public Vector3 positionB {
|
||||
get { return this.m_pos_b; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user