示例#1
0
	void Awake()
	{
		enemyMotion = GetComponent<EnemyMotion>();
		enemySprite = enemyMotion.GetComponent<SpriteRenderer>();
		enemyTransform = enemyMotion.spriteTransform;
        enemyAudio = GetComponent<AudioSource>();
	}
示例#2
0
	void Awake()
	{
		damageTaker = GetComponent<DamageTaker>();
		enemyMotion = GetComponent<EnemyMotion>();
		enemySprite = enemyMotion.GetComponent<SpriteRenderer>();
		enemyTransform = enemyMotion.spriteTransform;
	}