Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

iTween + IEnumerator: InvalidCastException: Cannot cast from source type to destination type.

$
0
0
I get the Error "InvalidCastException: Cannot cast from source type to destination type.", when I tried to use this script: void OnTriggerEnter(Collider other) { ... direction = new Vector3(1, 0, 0); StartCoroutine(Boost()); ... } IEnumerator Boost() { ... iTween.MoveBy(gameObject ,iTween.Hash("amount", Vector3.Dot(new Vector3(bd, bd, bd), direction), "space", Space.World, "time", bd)); yield return new WaitForSeconds(bd); ... } (bd is an integer) I don't understand this Error. Thanks!

Viewing all articles
Browse latest Browse all 7934

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>