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