private void Awake() { minAngle = 0f; maxAngle = 90f; player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>(); ge = GameObject.FindGameObjectWithTag("GlobalEventManager").GetComponent <GlobalEventManager>(); }
private void OnEnable() { player = GetComponent <Player>(); tr = Camera.main.transform; ge = GameObject.FindGameObjectWithTag("GlobalEventManager").GetComponent <GlobalEventManager>(); }