Other
unity doesnt recognise quaternions
i get this error Assets/scripts/enemyTurretRotations.cs(35,34): error CS0103: The name Quarternion' does not exist in the current context what am I doing wrong here using System.Collections; using System.Collections.Generic; using UnityEngine; public class enemyTurretRotation : MonoBehaviour { public float rotateSpeed = 0.6f; public GameObject T90parent; public enemyAttack enemyAttackScript; public GameObject player; public bool rotate = false; // Use this for initialization void Start () { T90parent = gameObject.transform.root.gameObject; enemyAttackScript = T90parent.GetComponentInChildren<enemyAttack>(); player = GameObject.FindGameObjectWithTag("Player"); } // Update is called once per frame void Update () { if (enemyAttackScript.attack) { rotate = true; } if (rotate == true) { Vector3 playerDir = new Vector3(player.transform.rotation.x, player.transform.rotation.y, player.transform.rotation.z * rotateSpeed * Time.deltaTime ); } } } I also get the error Assets/scripts/enemyTurretRotations.cs(33,26): error CS0103: The name
speed' does not exist in the current context what am I doing wrong?
Follow this Question
Related Questions
how to fix countdown bug after reset level? 0 Answers
How to make health/damage system on collision? 0 Answers
How to use unity rewarded ads? 1 Answer
How can i disable/enable slowly the blur effect using the blur script ? 0 Answers
Why when i color 4 walls of a grid 10x10 it's coloring 10,9,9,8 and not 10,10,10,10 ? 0 Answers