void Start()
    {
        config = GetComponent <EnemyPrefabConfig> ();
        model  = config.enemyModel;
        view   = config.enemyView;

        model.SetMaxHealth(config.maxHealth);
    }
示例#2
0
    void Start()
    {
        config             = GetComponent <EnemyPrefabConfig> ();
        movementController = GetComponent <MovementController> ();

        owningPlayer = config.owningPlayer;
        sfx          = config.sfx;
        anim         = config.anim;
        model        = config.enemyModel;
        healthBar    = config.healthBar;
        onKillMoney  = config.onKillMoney;
    }