29 lines
773 B
C#
29 lines
773 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class OceanSetting : MonoBehaviour
|
|
{
|
|
public bool SetOceanGeometry;
|
|
public OceanGeometry OceanGeometry;
|
|
public Vector3 _TargetPosition;
|
|
public Vector3 _TargetScale;
|
|
void Start()
|
|
{
|
|
OceanGeometry = GetComponent<OceanGeometry>();
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
//if(OceanGeometry.Init1&& OceanGeometry.Init2 && OceanGeometry.Init3&&!SetOceanGeometry)
|
|
//{
|
|
// SetOceanGeometry = true;
|
|
// OceanGeometry.enabled = false;
|
|
// transform.localPosition = _TargetPosition;
|
|
// transform.localScale = _TargetScale;
|
|
// Debug.Log("Done");
|
|
//}
|
|
}
|
|
}
|