void Awake()
	{
		_instance=this;
		//player=GameObject.FindGameObjectWithTag("Player");
        enemyController = this.GetComponent<EnemyController>();
        enemyController.OnCreateEnemy += this.OnCreateEnemy;
        enemyController.OnAsyncEnemyPostionRotation += this.OnSyncEnemyPostionRotation;
        enemyController.OnSyncEnemyAnimation += this.OnSyncEnemyAnimation;
	}
Esempio n. 2
0
 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;
 }
Esempio n. 4
0
 void Awake()
 {
     instance = this;
     player   = GameObject.FindGameObjectWithTag("Player");
 }
Esempio n. 5
0
	void Awake(){
		_instance = this;
		player = GameObject.FindGameObjectWithTag("Player");
	}
    private List <Enemy> syncEnemyAnimList = new List <Enemy>(); //需要同步敌人动画的集合

    void Awake()
    {
        instance = this;
        //player = GameObject.FindGameObjectWithTag("me").gameObject;
    }
Esempio n. 7
0
	void Awake()
	{
		_instance = this;
	}
 void Awake()
 {
     _instance = this;
     player    = GameObject.FindGameObjectWithTag("PlayerTranscript");
 }
Esempio n. 9
0
 void Awake()
 {
     _instance = this;
 }