using System.Collections; using System.Collections.Generic; using UnityEngine; public class FrozenCharacterController : MonoBehaviour { public static FrozenCharacterController Instance { get { return instance; } } private static FrozenCharacterController instance; [Range(3,15)] public float DisAppearTime; public float Maxheight = 0.65f; private void Awake() { instance = this; } // Use this for initialization void Start () { } // Update is called once per frame void Update () { } public float GetDisAppear() { float distime = DisAppearTime - Random.Range(0, DisAppearTime / 2); distime = DisAppearTime * distime - distime * distime + 0.5f * distime; return distime; } }