well never sean this before and no idea why i should have it with a simple term…
error CS0135: `TimerOne’ conflicts with a declaration in a child block
using UnityEngine;
using System.Collections;
public class CameraControlla : MonoBehaviour {
public float TimerOne = 0f;
private float rotationSpeed = 12;
public bool CameraCall1 = false;
public bool CameraCall2 = false;
public GameObject CameratoTack1;
public GameObject CameratoTack2;
// Update is called once per frame
void Update () {
TimerOne += 1;
if (TimerOne => 4) {
CameraCall1 = true;
}
if (TimerOne => 8) {
CameraCall1 = true;
}
if(CameraCall1 == true){
// Track
transform.rotation = Quaternion.Slerp(CameratoTack1.transform.rotation, Quaternion.LookRotation(CameratoTack1.transform.position - transform.position ), Time.deltaTime * rotationSpeed);
}
if(CameraCall2 == true){
// Track
transform.rotation = Quaternion.Slerp(CameratoTack2.transform.rotation, Quaternion.LookRotation(CameratoTack2.transform.position - transform.position ), Time.deltaTime * rotationSpeed);
}
}
}