private float shiftTime; // 加速遷移時間 #endregion #region MAIN FUNCTION /// <summary> /// 射撃 /// </summary> void Start() { direct = transform.rotation * Vector3.forward; speed = startSpeed; omega = Vector3.zero; shiftTime = 0f; var move = direct * speed; trail.StartTrail(0, transform.position, move); }
private int powerCount; // 急制動回数 #endregion #region MAIN FUNCTION public void Start() { direct = transform.rotation * Vector3.forward; speed = startSpeed; omega = Vector3.zero; shiftTime = 0f; // 急制動パラメータ force = direct; powerCount = 0; powerEnable = true; // NOTE: 急制動開始までのディレイ powerTime = FRAME_TIME * -Random.Range(15, 25); power = 0f; trail.StartTrail(index, transform.position, direct * speed, 0f); }