示例#1
0
	// Use this for initialization
	void Start () {
	
        var playerObj = GameObject.FindGameObjectWithTag("Player");
        if (playerObj)
        {
            Player = playerObj.transform;
        }

        _enemyManager = GameObject.FindObjectOfType<EnemyManager>();
        if (_enemyManager)
        {
            _enemyManager.AddDemon(this);
        }

        _health = _generalSettings.Health;
	}