void Awake() { _instance=this; //player=GameObject.FindGameObjectWithTag("Player"); enemyController = this.GetComponent<EnemyController>(); enemyController.OnCreateEnemy += this.OnCreateEnemy; enemyController.OnAsyncEnemyPostionRotation += this.OnSyncEnemyPostionRotation; enemyController.OnSyncEnemyAnimation += this.OnSyncEnemyAnimation; }
void Awake() { _instance = this; //player=GameObject.FindGameObjectWithTag("Player"); enemyController = this.GetComponent <EnemyController>(); enemyController.OnCreateEnemy += this.OnCreateEnemy; enemyController.OnAsyncEnemyPostionRotation += this.OnSyncEnemyPostionRotation; enemyController.OnSyncEnemyAnimation += this.OnSyncEnemyAnimation; }
private void Awake() { instance = this; }
void Awake() { instance = this; player = GameObject.FindGameObjectWithTag("Player"); }
void Awake(){ _instance = this; player = GameObject.FindGameObjectWithTag("Player"); }
private List <Enemy> syncEnemyAnimList = new List <Enemy>(); //需要同步敌人动画的集合 void Awake() { instance = this; //player = GameObject.FindGameObjectWithTag("me").gameObject; }
void Awake() { _instance = this; }
void Awake() { _instance = this; player = GameObject.FindGameObjectWithTag("PlayerTranscript"); }