void Awake()
	{
		_instance=this;
		//player=GameObject.FindGameObjectWithTag("Player");
        enemyController = this.GetComponent<EnemyController>();
        enemyController.OnCreateEnemy += this.OnCreateEnemy;
        enemyController.OnAsyncEnemyPostionRotation += this.OnSyncEnemyPostionRotation;
        enemyController.OnSyncEnemyAnimation += this.OnSyncEnemyAnimation;
	}
Example #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;
 }
Example #4
0
 void Awake()
 {
     instance = this;
     player   = GameObject.FindGameObjectWithTag("Player");
 }
Example #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;
    }
Example #7
0
	void Awake()
	{
		_instance = this;
	}
 void Awake()
 {
     _instance = this;
     player    = GameObject.FindGameObjectWithTag("PlayerTranscript");
 }
Example #9
0
 void Awake()
 {
     _instance = this;
 }