Exemplo n.º 1
0
    void Start()
    {
        config = GetComponent <EnemyPrefabConfig> ();
        model  = config.enemyModel;
        view   = config.enemyView;

        model.SetMaxHealth(config.maxHealth);
    }
Exemplo n.º 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;
    }