mirror of
https://github.com/BlackMATov/unity-iso-tools.git
synced 2025-12-15 09:16:08 +07:00
unity code style
This commit is contained in:
@@ -3,8 +3,8 @@ using System.Collections;
|
||||
|
||||
namespace IsoTools { namespace Examples {
|
||||
public class CircleFly : MonoBehaviour {
|
||||
public float FlyRadius = 150.0f;
|
||||
public float FlySpeed = 1.0f;
|
||||
public float flyRadius = 150.0f;
|
||||
public float flySpeed = 1.0f;
|
||||
|
||||
Vector3 _start_pos;
|
||||
float _fly_timer;
|
||||
@@ -15,10 +15,10 @@ namespace IsoTools { namespace Examples {
|
||||
}
|
||||
|
||||
void Update () {
|
||||
_fly_timer += FlySpeed * Time.deltaTime;
|
||||
_fly_timer += flySpeed * Time.deltaTime;
|
||||
transform.position = new Vector3(
|
||||
_start_pos.x + Mathf.Cos(_fly_timer) * FlyRadius,
|
||||
_start_pos.y + Mathf.Sin(_fly_timer) * FlyRadius,
|
||||
_start_pos.x + Mathf.Cos(_fly_timer) * flyRadius,
|
||||
_start_pos.y + Mathf.Sin(_fly_timer) * flyRadius,
|
||||
_start_pos.z);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user