- Home /
This question was
closed Feb 05, 2016 at 06:32 AM by
NoseKills for the following reason:
The question is answered, right answer was accepted
Question by
zak666 · Feb 04, 2016 at 02:50 PM ·
scripting problem
error CS0117: `UnityEngine.Time' does not contain a definition for `delaTime'
Hi guys don't know why its having their is not time.deltatime. trying to change field of view overtime public class CutOneCameraControll : MonoBehaviour {
public float ZoomedCamera = 20f;
public float NormalCamera = 80f;
public float Looktime = 2;
public GameObject BattleshipTarget;
public Camera Camera1;
public Camera Camera2;
public Transform Target;
public GameObject BattleShipdestroyed;
void Update () {
// Camera controll:
StartCoroutine(SectionOne());
}
// Time Ienermurators:
IEnumerator SectionOne () {
yield return new WaitForSeconds(6f); // after six seconds destroy the battleship and zoom in on it.
transform.LookAt(Target);
Rigidbody clone;
clone = Instantiate(BattleShipdestroyed, transform.position, transform.rotation) as Rigidbody;
Camera1.fieldOfView = ZoomedCamera * Looktime * Time.delaTime; //zoom in as it gets destroyed
}
}
Comment
Best Answer
Answer by Taxen0 · Feb 04, 2016 at 03:09 PM
Perhaps you meant to type "Time.deltaTime"? notice the missing "t"
Answer by AlexNetRus · Feb 05, 2016 at 02:46 AM
Hi! There is Time.delaTime in your code. May be you need Time.deltaTime?
Follow this Question
Related Questions
Scripts not updating the material's shader properties 1 Answer
How to Instantiate prefab when dragging an object through a specific area? 1 Answer
In-Game Tutorial with special actions in special areas. (Shooter) 0 Answers
Unity freezing on Waitforsecond 1 Answer
Check the material in script [C#] 1 Answer