Beispiel #1
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(this);
     }
 }
Beispiel #2
0
 public Vector3 SineWave(Vector3 pos, Vector3 dir, float t)
 {
     return(FishMovement.SinWave(mag, freq, pos, dir, t));
 }