unity code style

This commit is contained in:
2015-07-11 15:57:58 +06:00
parent ff2db6d279
commit 3437fa40ce
23 changed files with 926 additions and 923 deletions

View File

@@ -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);
}
}