You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
786 B

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